Skip to content

Merge pull request #219 from CirclesUBI/feature/app-450-add-possibili… #65

Merge pull request #219 from CirclesUBI/feature/app-450-add-possibili…

Merge pull request #219 from CirclesUBI/feature/app-450-add-possibili… #65

name: Migrations
on:
release:
types: [published]
push:
branches:
- main
- next
- dev
paths:
- "Dockerfile.migrations"
- "src/api-db-migrations/**"
- ".github/workflows/build-push.migrations.yml"
workflow_call:
inputs:
ref:
required: true
type: string
default: ${{ github.ref }}
jobs:
call-build-and-push:
name: Call image build
uses: CirclesUBI/.github/.github/workflows/build-and-push.yml@main
if: ( inputs.ref == 0 )
with:
image-name: "api-server-migrations"
file: "Dockerfile.migrations"
secrets: inherit
call-build-and-push-ref:
name: Call tagged image build
uses: CirclesUBI/.github/.github/workflows/build-and-push.yml@main
if: ( inputs.ref != 0 )
with:
image-name: "api-server-migrations"
file: "Dockerfile.migrations"
ref: ${{ inputs.ref }}
secrets: inherit