From 7ddfeb93ddd4346b76cca3a4eab3b177a78cd639 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 14 Mar 2024 17:32:54 +0530 Subject: [PATCH] Fix up the workflow --- .../workflows/copycat-db-release.yaml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) rename infra/copycat-db/.github/workflows/ci.yaml => .github/workflows/copycat-db-release.yaml (61%) diff --git a/infra/copycat-db/.github/workflows/ci.yaml b/.github/workflows/copycat-db-release.yaml similarity index 61% rename from infra/copycat-db/.github/workflows/ci.yaml rename to .github/workflows/copycat-db-release.yaml index aa57e206c9..5ec942879d 100644 --- a/infra/copycat-db/.github/workflows/ci.yaml +++ b/.github/workflows/copycat-db-release.yaml @@ -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}