Skip to content

Commit

Permalink
Add docker hub push (#2)
Browse files Browse the repository at this point in the history
* Update docker-build.yml

* Update docker-build.yml
  • Loading branch information
docjyJ authored Jun 13, 2024
1 parent 257e3f1 commit 496a041
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=develop
type=raw,value=beta
Expand All @@ -43,6 +45,13 @@ jobs:
type=semver,pattern=v{{major}}
type=sha
- name: Log in to Docker Hub
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Log in to the GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 496a041

Please sign in to comment.