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