Skip to content

Commit eeb0c42

Browse files
authored
Merge pull request #15 from metricq/chore-migrate-to-ghcr
chore: migrate docker workflow to ghcr.io hub.docker.com announced their plans to drop the free organizations. While backtracking on those changes, we still decided to move to ghcr.io, as we are using Github anyways.
2 parents 48cafbb + 25580e3 commit eeb0c42

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Prepare
2121
id: prep
2222
run: |
23-
DOCKER_IMAGE=metricq/metricq-combinator
23+
DOCKER_IMAGE=ghcr.io/metricq/metricq-combinator
2424
VERSION=noop
2525
if [[ $GITHUB_REF == refs/tags/* ]]; then
2626
VERSION=${GITHUB_REF#refs/tags/}
@@ -47,15 +47,16 @@ jobs:
4747
uses: docker/setup-qemu-action@v2
4848
- name: Set up Docker Buildx
4949
uses: docker/setup-buildx-action@v2
50-
- name: Login to DockerHub
50+
- name: Login to Github Container registry
5151
if: github.event_name != 'pull_request'
5252
uses: docker/login-action@v2
5353
with:
54-
username: ${{ secrets.DOCKERHUB_USERNAME }}
55-
password: ${{ secrets.DOCKERHUB_TOKEN }}
54+
registry: ghcr.io
55+
username: ${{ github.actor }}
56+
password: ${{ secrets.GITHUB_TOKEN }}
5657
- name: Build and push
5758
id: docker_build
58-
uses: docker/build-push-action@v2
59+
uses: docker/build-push-action@v4
5960
with:
6061
context: .
6162
file: ./Dockerfile

0 commit comments

Comments
 (0)