From 4a713980bfc8d7e77674fe92711cc361a50721b7 Mon Sep 17 00:00:00 2001 From: Vederis Leunardus Date: Mon, 29 Apr 2024 17:39:47 +0800 Subject: [PATCH] feat: Pushing docker containers by version tag (#421) * feat: build docker image based on tag version * refactor: tabbing * refactor: revert conflict --- .github/workflows/build-deploy-container.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index a3d19197f..44ff44438 100644 --- a/.github/workflows/build-deploy-container.yml +++ b/.github/workflows/build-deploy-container.yml @@ -55,11 +55,11 @@ jobs: uses: docker/build-push-action@v5 id: build with: - context: . + context: ./ file: ./packages/webapp/Dockerfile platforms: ${{ matrix.platform }} push: true - tags: ghcr.io/bigcapitalhq/webapp:latest + tags: ghcr.io/bigcapitalhq/webapp:latest, ghcr.io/bigcapitalhq/webapp:${{github.ref_name}} labels: ${{ steps.meta.outputs.labels }} - name: Export digest @@ -116,7 +116,7 @@ jobs: file: ./packages/server/Dockerfile platforms: ${{ matrix.platform }} push: true - tags: ghcr.io/bigcapitalhq/server:latest + tags: ghcr.io/bigcapitalhq/server:latest, ghcr.io/bigcapitalhq/server:${{github.ref_name}} labels: ${{ steps.meta.outputs.labels }} - name: Export digest