diff --git a/.github/workflows/build-push/action.yml b/.github/workflows/build-push/action.yml index 92e7a0f..90510da 100644 --- a/.github/workflows/build-push/action.yml +++ b/.github/workflows/build-push/action.yml @@ -3,7 +3,9 @@ name: Build and Push Docker Image inputs: context: required: true - token: + username: + required: true + password: required: true env: @@ -22,8 +24,8 @@ runs: uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ inputs.token }} + username: ${{ inputs.username }} + password: ${{ inputs.password }} - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8e40cbf..40878d4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,6 +5,10 @@ on: tags: - "v*" +env: + USERNAME: ${{ github.repository_owner }} + PASSWORD: ${{ secrets.GITHUB_TOKEN }} + jobs: sorusora: runs-on: ubuntu-latest @@ -16,7 +20,8 @@ jobs: uses: ./.github/workflows/build-push with: context: sorusora - token: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.USERNAME }} + password: ${{ env.PASSWORD }} sorusora-ai: runs-on: ubuntu-latest @@ -28,4 +33,5 @@ jobs: uses: ./.github/workflows/build-push with: context: sorusora-ai - token: ${{ secrets.GITHUB_TOKEN }} + username: ${{ env.USERNAME }} + password: ${{ env.PASSWORD }}