Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
recall704 committed Aug 20, 2021
1 parent db3eaf1 commit 55f98d6
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 @@ -27,11 +27,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
- name: Login to GitHub Package Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and push
id: docker-build
Expand All @@ -40,7 +41,7 @@ jobs:
context: .
platforms: linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64
push: true
tags: micromata/dave:latest,micromata/dave:${{ env.VERSION }}
tags: ghcr.io/${{ github.repository_owner }}/dave:latest,ghcr.io/${{ github.repository_owner }}/dave:${{ env.VERSION }}

- name: Image digest
run: echo ${{ steps.docker-build.outputs.digest }}

0 comments on commit 55f98d6

Please sign in to comment.