Skip to content

Commit

Permalink
update push image to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
NortonBen committed Oct 23, 2022
1 parent 720a780 commit 7b562d6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: docker

on:
push:
branches:
- master
tags:
- 'v*.*.*'

Expand All @@ -19,14 +21,11 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
dipperhub/dipper-engine
ghcr.io/dipper-iot/dipper-engine
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up QEMU
Expand All @@ -35,12 +34,12 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
if: github.event_name != 'pull_request'
name: Login to GHCR
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 7b562d6

Please sign in to comment.