From 45be5aa463da4f71395675e58a235c628b88d2f7 Mon Sep 17 00:00:00 2001 From: Vederis Leunardus Date: Wed, 24 Apr 2024 10:44:53 +0800 Subject: [PATCH 1/3] feat: build docker image based on tag version --- .github/workflows/build-deploy-container.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index 141368426..15d85fbd7 100644 --- a/.github/workflows/build-deploy-container.yml +++ b/.github/workflows/build-deploy-container.yml @@ -40,7 +40,7 @@ jobs: context: . file: ./packages/webapp/Dockerfile 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 }} # Send notification to Slack channel. @@ -71,7 +71,7 @@ jobs: context: ./ file: ./packages/server/Dockerfile 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 }} # Send notification to Slack channel. From 9418c15695cd475af86605cbb6b2351a945b836c Mon Sep 17 00:00:00 2001 From: Vederis Leunardus Date: Wed, 24 Apr 2024 10:52:27 +0800 Subject: [PATCH 2/3] refactor: tabbing --- .github/workflows/build-deploy-container.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index 73500e6b3..fd392b1f0 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: . - file: ./packages/webapp/Dockerfile - push: true - tags: ghcr.io/bigcapitalhq/webapp:latest, ghcr.io/bigcapitalhq/webapp:${{github.ref_name}} - labels: ${{ steps.meta.outputs.labels }} + context: ./ + file: ./packages/webapp/Dockerfile + push: true + tags: ghcr.io/bigcapitalhq/webapp:latest, ghcr.io/bigcapitalhq/webapp:${{github.ref_name}} + labels: ${{ steps.meta.outputs.labels }} - name: Export digest run: | From b4bde0e8cc218c8b499601734bd6065bc0ab86c3 Mon Sep 17 00:00:00 2001 From: Vederis Leunardus Date: Wed, 24 Apr 2024 10:53:26 +0800 Subject: [PATCH 3/3] refactor: revert conflict --- .github/workflows/build-deploy-container.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-deploy-container.yml b/.github/workflows/build-deploy-container.yml index fd392b1f0..44ff44438 100644 --- a/.github/workflows/build-deploy-container.yml +++ b/.github/workflows/build-deploy-container.yml @@ -57,6 +57,7 @@ jobs: with: context: ./ file: ./packages/webapp/Dockerfile + platforms: ${{ matrix.platform }} push: true tags: ghcr.io/bigcapitalhq/webapp:latest, ghcr.io/bigcapitalhq/webapp:${{github.ref_name}} labels: ${{ steps.meta.outputs.labels }}