Skip to content

Commit f9e67a7

Browse files
committed
Fix Docker CI
1 parent 0db2e8f commit f9e67a7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/docker.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ jobs:
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
@@ -52,8 +60,8 @@ jobs:
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: |

0 commit comments

Comments
 (0)