diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 832099f..e5d5b52 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -115,4 +115,52 @@ jobs: context: .github/docker/hugo file: .github/docker/hugo/Dockerfile platforms: linux/amd64,linux/arm64 - tags: "ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:hugo,ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:${{ github.sha }}" \ No newline at end of file + tags: "ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:hugo,ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:${{ github.sha }}" + + - name: Build and Push Image pulumi/devcontainer:slim-python + uses: docker/build-push-action@v5 + id: docker-build-push-slim-python + if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' + with: + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + cache-from: | + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-python-cache + cache-to: type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache,mode=max + context: .github/docker/slim-python + file: .github/docker/slim-python/Dockerfile + platforms: linux/amd64,linux/arm64 + tags: "ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-python,ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:${{ github.sha }}" + + - name: Build and Push Image pulumi/devcontainer:slim-dotnet + uses: docker/build-push-action@v5 + id: docker-build-push-slim-dotnet + if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' + with: + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + cache-from: | + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-dotnet-cache + cache-to: type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache,mode=max + context: .github/docker/slim-dotnet + file: .github/docker/slim-dotnet/Dockerfile + platforms: linux/amd64,linux/arm64 + tags: "ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-dotnet,ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:${{ github.sha }}" + + - name: Build and Push Image pulumi/devcontainer:slim-golang + uses: docker/build-push-action@v5 + id: docker-build-push-slim-golang + if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' + with: + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + cache-from: | + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-cache + type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-golang-cache + cache-to: type=registry,ref=ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:build-cache,mode=max + context: .github/docker/slim-golang + file: .github/docker/slim-golang/Dockerfile + platforms: linux/amd64,linux/arm64 + tags: "ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:slim-golang,ghcr.io/${{ steps.string-repository-to-lower.outputs.lowercase }}:${{ github.sha }}" \ No newline at end of file