Skip to content

Commit

Permalink
Push image to DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Sep 10, 2024
1 parent 53983c3 commit 96c07f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
docker.io/${{ secrets.DOCKERHUB_USERNAME }}/rust
ghcr.io/${{ github.repository_owner }}/rust
tags: |
type=semver,pattern={{version}}
Expand All @@ -39,6 +40,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build machine image
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 96c07f2

Please sign in to comment.