Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit 4e96ca8

Browse files
committed
Add manual Docker publishing trigger in GH action workflow
1 parent c5da8ea commit 4e96ca8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Publish Docker image
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Git ref (tag or commit SHA) to build'
8+
required: true
9+
type: string
10+
default: 'main'
411
push:
512
tags:
613
- 'v*'
@@ -33,6 +40,8 @@ jobs:
3340
steps:
3441
- name: Check out the repo
3542
uses: actions/checkout@v4
43+
with:
44+
ref: ${{ github.event.inputs.ref || github.ref }}
3645

3746
- name: Set up QEMU
3847
uses: docker/setup-qemu-action@v3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV RAILS_ENV="production" \
2121
FROM base AS build
2222

2323
# Install packages needed to build gems
24-
RUN apt-get install --no-install-recommends -y build-essential libpq-dev pkg-config
24+
RUN apt-get install --no-install-recommends -y build-essential libpq-dev git pkg-config
2525

2626
# Install application gems
2727
COPY .ruby-version Gemfile Gemfile.lock ./

0 commit comments

Comments
 (0)