From 3629e3ced71468de1bc0f807073406b74eae8600 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 13 May 2024 14:07:32 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20update=20CI=20flow:=20add=20build-a?= =?UTF-8?q?rgs,=20platforms,=20outputs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-dev.yml | 4 ++++ .github/workflows/ci-main.yml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index c10b64c..5cd528d 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -44,6 +44,10 @@ jobs: with: context: . push: true + build-args: | + - VERSION=${{ env.VERSION }} + platforms: linux/amd64 + outputs: type=registry tags: | ghcr.io/vngcloud/${{ matrix.image }}:${{ github.sha }} ${{ env.REPO }}/${{ matrix.image }}:${{ github.sha }} diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 3a4e3db..312cc20 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -2,7 +2,7 @@ name: CI Main on: push: - branches: [ "main" ] + branches: ["main"] env: VERSION: v0.2.0 @@ -31,7 +31,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: Log in to the vCR uses: docker/login-action@v3 with: @@ -44,6 +44,10 @@ jobs: with: context: . push: true + build-args: | + - VERSION=${{ env.VERSION }} + platforms: linux/amd64 + outputs: type=registry tags: | ghcr.io/vngcloud/${{ matrix.image }}:${{ github.sha }} ${{ env.REPO }}/${{ matrix.image }}:${{ github.sha }}