1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Add manual Docker publishing trigger in GH action workflow

This commit is contained in:
Zach Gollwitzer 2025-03-03 14:34:56 -05:00
parent c5da8ea550
commit 4e96ca8376
2 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,13 @@
name: Publish Docker image name: Publish Docker image
on: on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref (tag or commit SHA) to build'
required: true
type: string
default: 'main'
push: push:
tags: tags:
- 'v*' - 'v*'
@ -33,6 +40,8 @@ jobs:
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3

View file

@ -21,7 +21,7 @@ ENV RAILS_ENV="production" \
FROM base AS build FROM base AS build
# Install packages needed to build gems # Install packages needed to build gems
RUN apt-get install --no-install-recommends -y build-essential libpq-dev pkg-config RUN apt-get install --no-install-recommends -y build-essential libpq-dev git pkg-config
# Install application gems # Install application gems
COPY .ruby-version Gemfile Gemfile.lock ./ COPY .ruby-version Gemfile Gemfile.lock ./