From 75d7a978a7f4556a93171b352df5777ec75c5721 Mon Sep 17 00:00:00 2001 From: Sahil Ahuja Date: Wed, 29 Jan 2025 20:17:01 +0530 Subject: [PATCH] Changes --- .github/workflows/base-build-image.yml | 8 ++++---- .github/workflows/push-image-scan.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base-build-image.yml b/.github/workflows/base-build-image.yml index 5b165c6..25ef5fd 100644 --- a/.github/workflows/base-build-image.yml +++ b/.github/workflows/base-build-image.yml @@ -16,7 +16,7 @@ jobs: - id: get-id name: Get a unique tag for this build run: | - echo "DOCKER_IMAGE=${{ vars.docker_repo2_registry }}/${{ github.repository }}:${{ inputs.image_tag }}" >> "$GITHUB_OUTPUT"; + echo "DOCKER_IMAGE=${{ secrets.docker_repo2_registry }}/${{ github.repository }}:${{ inputs.image_tag }}" >> "$GITHUB_OUTPUT"; - name: Print image name run: | @@ -28,9 +28,9 @@ jobs: # if: ${{ github.event_name == 'push' }} uses: docker/login-action@v3 with: - registry: ${{ vars.docker_repo2_registry }} - username: ${{ vars.docker_repo2_username }} - password: ${{ vars.docker_repo2_password }} + registry: ${{ secrets.docker_repo2_registry }} + username: ${{ secrets.docker_repo2_username }} + password: ${{ secrets.docker_repo2_password }} - name: Build and push the Docker image run: | diff --git a/.github/workflows/push-image-scan.yml b/.github/workflows/push-image-scan.yml index 326a84d..8bead71 100644 --- a/.github/workflows/push-image-scan.yml +++ b/.github/workflows/push-image-scan.yml @@ -17,7 +17,7 @@ jobs: run: | SHA=${{ github.sha }}; BRANCH_NAME=${{ github.base_ref || github.ref_name }}; BUILD_ID=$BRANCH_NAME-${SHA:0:8}; - DOCKER_IMAGE=${{ vars.docker_repo2_registry }}/$REPO:$BUILD_ID; + DOCKER_IMAGE=${{ secrets.docker_repo2_registry }}/$REPO:$BUILD_ID; echo "BUILD_ID=$BUILD_ID" >> "$GITHUB_OUTPUT"; echo "DOCKER_IMAGE=$DOCKER_IMAGE" >> "$GITHUB_OUTPUT";