Skip to content

Commit

Permalink
Merge pull request #7 from Chatyx/bugfix/fix-ci
Browse files Browse the repository at this point in the history
Fixed release ci
  • Loading branch information
Mort4lis authored Feb 4, 2024
2 parents 6fc4dc0 + 515aace commit dd67ea3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Publish Docker image

on:
workflow_call:
secrets:
username:
required: true
password:
required: true

jobs:
publish:
Expand All @@ -13,8 +18,8 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.username }}
password: ${{ secrets.password }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ on:

jobs:
publish:
uses: ./.github/workflows/publish.yml
uses: ./.github/workflows/publish.yml
secrets:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit dd67ea3

Please sign in to comment.