diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml index 5159e29..df254ed 100644 --- a/.github/workflows/container.yaml +++ b/.github/workflows/container.yaml @@ -103,3 +103,17 @@ jobs: file: docker/Dockerfile platforms: linux/amd64,linux/arm64 tags: "ghcr.io/${{ steps.repository.outputs.lowercase }}:latest,ghcr.io/${{ steps.repository.outputs.lowercase }}:${{ github.sha }}" + + - + if: ${{ github.event_name == 'push' }} && ${{ github.ref == 'refs/heads/main' }} + name: Container Push + uses: docker/build-push-action@v5 + id: container-push + with: + push: true + cache-from: type=inline + context: docker + file: docker/Dockerfile + platforms: linux/amd64,linux/arm64 + annotations: '"annotations": { "org.opencontainers.image.description": "Pulumi Devcontainer" }' + tags: "ghcr.io/${{ steps.repository.outputs.lowercase }}:latest,ghcr.io/${{ steps.repository.outputs.lowercase }}:${{ github.sha }}"