Skip to content

Commit

Permalink
Merge pull request #175 from sharkwouter/patch-1
Browse files Browse the repository at this point in the history
Also push container to Docker Hub
  • Loading branch information
nvthongswansea authored Jun 10, 2024
2 parents e88bbd0 + 80fc272 commit 0158504
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: github.repository_owner == 'gridscale'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v5
if: github.repository_owner == 'gridscale'
with:
context: .
push: true
labels: |
git_commit=${{ github.sha }}
version=${{ github.ref_name }}
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ github.ref_name }}

0 comments on commit 0158504

Please sign in to comment.