Skip to content

Commit

Permalink
chore: migrate docker workflow to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnarr authored Mar 16, 2023
1 parent 48cafbb commit 26ade1b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=metricq/metricq-combinator
DOCKER_IMAGE=ghcr.io/metricq/metricq-combinator
VERSION=noop
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
Expand All @@ -47,12 +47,13 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Login to Github Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 26ade1b

Please sign in to comment.