From 9a4f9c74f22161ab3d15ebe1b504665112160f81 Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 8 Oct 2024 16:19:25 -0600 Subject: [PATCH] put auth prior --- .github/actions/build-publish-ocr/action.yml | 6 ------ .github/workflows/deploy-dev.yml | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/build-publish-ocr/action.yml b/.github/actions/build-publish-ocr/action.yml index 695bed8e..3eee1e84 100644 --- a/.github/actions/build-publish-ocr/action.yml +++ b/.github/actions/build-publish-ocr/action.yml @@ -13,12 +13,6 @@ runs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ inputs.token }} - name: Lowercase the repo name shell: bash run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 53faf927..3970e340 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -35,6 +35,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and Push backend uses: ./.github/actions/build-publish-ocr with: