Skip to content

Commit

Permalink
Migrate docker images to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Mar 16, 2023
1 parent 7a7fc57 commit e2577e1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ jobs:
run: git fetch --force --tags

- name: Setup QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
id: buildx

- name: Login to Docker Hub
uses: docker/login-action@v1
- name: Login to container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io

- name: Prepare
id: prep
Expand All @@ -41,16 +42,16 @@ jobs:
echo ::set-output name=VERSION::${VERSION}
- name: Publish multi-arch Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
tags: |
docker.io/mmontes11/echoperator:${{ steps.prep.outputs.VERSION }}
docker.io/mmontes11/echoperator:latest
ghcr.io/${{ github.repository_owner }}/echoperator:${{ steps.prep.outputs.VERSION }}
ghcr.io/${{ github.repository_owner }}/echoperator:latest
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
Expand Down

0 comments on commit e2577e1

Please sign in to comment.