File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 4444 - name : Set up Docker Buildx
4545 uses : docker/setup-buildx-action@v3
4646
47+ - name : Login to GitHub Container Registry
48+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
49+ if : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
50+ with :
51+ registry : ghcr.io
52+ username : ${{ github.actor }}
53+ password : ${{ secrets.GITHUB_TOKEN }}
54+
4755 - name : Build and push Docker image
4856 id : docker_build
4957 uses : docker/build-push-action@v6
5260 file : Dockerfile.ml
5361 push : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
5462 tags : |
55- us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/stackdriver-exporter :${{ steps.docker_tag.outputs.tag }}
56- us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/stackdriver-exporter :latest
63+ ghcr.io/${{ github.repository_owner }}/${{ matrix.components }} :${{ steps.docker_tag.outputs.tag }}
64+ ghcr.io/${{ github.repository_owner }}/${{ matrix.components }} :latest
5765
5866 - name : Print image digest to summary
5967 run : |
You can’t perform that action at this time.
0 commit comments