Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
Push to Dockerhub as well
  • Loading branch information
Salvoxia committed Dec 5, 2023
1 parent f26d6d0 commit eb3411a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ steps.image_name.outputs.image_name }}
${{ steps.image_name.outputs.image_name }}
# generate Docker tags based on the following events/attributes
tags: |
# set latest tag for default branch
Expand All @@ -49,6 +50,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}

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

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit eb3411a

Please sign in to comment.