From 515aace061b6e2c2e987f611e3e6ed24318eccfb Mon Sep 17 00:00:00 2001 From: Pavel Korchagin Date: Sun, 4 Feb 2024 12:08:39 +0300 Subject: [PATCH] fix: fix release ci --- .github/workflows/publish.yml | 9 +++++++-- .github/workflows/release.yml | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) 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