diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ced30d6..c9fc784 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,11 @@ name: Publish Docker image on: workflow_call: + secrets: + username: + required: true + password: + required: true jobs: publish: @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c46888c..6a938e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,4 +6,7 @@ on: jobs: publish: - uses: ./.github/workflows/publish.yml \ No newline at end of file + uses: ./.github/workflows/publish.yml + secrets: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} \ No newline at end of file