Fix up the workflow

This commit is contained in:
Manav Rathi 2024-03-14 17:32:54 +05:30
parent aaffc740bc
commit 7ddfeb93dd
No known key found for this signature in database

View file

@ -1,14 +1,7 @@
name: Build and push Docker image
name: "Release (copycat-db)"
on:
# Enable manual run
workflow_dispatch:
push:
branches:
- release
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v4.2.0
workflow_dispatch: # Run manually
jobs:
build:
@ -20,10 +13,12 @@ jobs:
- uses: mr-smithers-excellent/docker-build-push@v6
name: Build & Push
with:
dockerfile: infra/copycat-db/Dockerfile
directory: infra/copycat-db
image: ente/copycat-db
registry: rg.fr-par.scw.cloud
enableBuildKit: true
buildArgs: GIT_COMMIT=${GITHUB_SHA}
tags: ${GITHUB_SHA}, latest
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
env:
GIT_COMMIT: ${GITHUB_SHA}