From c3a2280eed8482574a0a9a703dbcb691b48f8acd Mon Sep 17 00:00:00 2001 From: Matt Cruz Date: Thu, 28 Nov 2024 15:28:05 -0500 Subject: [PATCH] Remove warnings --- .github/workflows/test.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21cd237..c27a9b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,24 +21,22 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Calculate SHA256 for postgres_primary.dockerfile - id: primary_sha - run: echo "::set-output name=sha256::$(sha256sum postgres_primary.dockerfile | awk '{ print substr($1, 1, 12) }')" + run: echo "PRIMARY_SHA=$(sha256sum postgres_primary.dockerfile | awk '{ print substr($1, 1, 12) }')" >> $GITHUB_ENV - name: Calculate SHA256 for postgres_replica.dockerfile - id: replica_sha - run: echo "::set-output name=sha256::$(sha256sum postgres_replica.dockerfile | awk '{ print substr($1, 1, 12) }')" + run: echo "REPLICA_SHA=$(sha256sum postgres_replica.dockerfile | awk '{ print substr($1, 1, 12) }')" >> $GITHUB_ENV - name: Compute container registry name run: echo "CR_NAME=$(echo ghcr.io/${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - name: Build and tag primary Docker image - run: docker build -f postgres_primary.dockerfile -t $CR_NAME/postgres_primary:${{ steps.primary_sha.outputs.sha256 }} . + run: docker build -f postgres_primary.dockerfile -t $CR_NAME/postgres_primary:${{ env.PRIMARY_SHA }} . - name: Build and tag replica Docker image - run: docker build -f postgres_replica.dockerfile -t $CR_NAME/postgres_replica:${{ steps.replica_sha.outputs.sha256 }} . + run: docker build -f postgres_replica.dockerfile -t $CR_NAME/postgres_replica:${{ env.REPLICA_SHA }} . - name: Push primary Docker image - run: docker push $CR_NAME/postgres_primary:${{ steps.primary_sha.outputs.sha256 }} + run: docker push $CR_NAME/postgres_primary:${{ env.PRIMARY_SHA }} - name: Push replica Docker image - run: docker push $CR_NAME/postgres_replica:${{ steps.replica_sha.outputs.sha256 }} + run: docker push $CR_NAME/postgres_replica:${{ env.REPLICA_SHA }}