Skip to content

test a reusable workflow #27

test a reusable workflow

test a reusable workflow #27

# Find full documentation here https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: prisma-migrate image
on:
pull_request:
paths:
- 'containers/prisma-migrate/**'
push:
branches:
- main
paths:
- 'containers/prisma-migrate/**'
# Manual invocation.
workflow_dispatch:
# Ensure we only ever have one build running at a time.
# If we push twice in quick succession, the first build will be stopped once the second starts.
# This avoids any race conditions.
concurrency:
group: ${{ github.ref }}/prisma-migrate
cancel-in-progress: true
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Build and push Docker image
uses: release-image
with:
IMAGE_NAME: prisma-migrate