Skip to content

Commit

Permalink
Again
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Oct 31, 2022
1 parent f4ad67e commit 2e2fa64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ name: Publish Docker Images
- "*"

workflow_call:
secrets:
DOCKER_HUB_PASSWORD:
required: true
DOCKER_HUB_USERNAME:
required: true

jobs:
publish-docker-hub:
Expand Down Expand Up @@ -44,7 +49,7 @@ jobs:
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: 🔐 Login to ghcr.io
uses: docker/login-action@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,6 @@ jobs:
needs: coverage

uses: ./.github/workflows/publish-docker.yml
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_TOKEN }}

0 comments on commit 2e2fa64

Please sign in to comment.