From f6886673a40d2b18cbd66bdd6ff8dc0ad0b8c3ef Mon Sep 17 00:00:00 2001 From: Jorge Antonio Date: Wed, 1 Jan 2025 22:25:20 +0000 Subject: [PATCH] deployments --- .github/workflows/release.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc7c008c..43185954 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,12 +34,26 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image + - name: Build and push TDX-enabled Docker image uses: docker/build-push-action@v5 with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + build-args: + ENABLE_TDX=true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} + + - name: Build and push default Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64, linux/arm64 + build-args: + ENABLE_TDX: "false" + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:default + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}-default