From 24d8a9aac5b253ff3c97249d3afab8510eb3c708 Mon Sep 17 00:00:00 2001 From: Michal Podhradsky Date: Wed, 12 Jun 2024 10:03:39 -0700 Subject: [PATCH] Properly reference the variables for real --- .github/workflows/docker-image.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e2a56129..f97163f0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -48,9 +48,9 @@ jobs: echo "Building ${{env.CERBERUS_IMAGE_ID}}" cd src/cerberus make -f Makefile_docker release - docker tag cerberus:release $CERBERUS_IMAGE_ID + docker tag cerberus:release ${{env.CERBERUS_IMAGE_ID}} - name: Push the Docker image - run: docker push $CERBERUS_IMAGE_ID + run: docker push ${{env.CERBERUS_IMAGE_ID}} - name: Log out run: docker logout @@ -69,7 +69,9 @@ jobs: password: ${{ secrets.VERSE_OPENSUT_ACCESS_TOKEN }} - name: Build the Docker image run: | - echo "Building $OPENSUT_BASE_IMAGE_ID" - docker build . --file Dockerfile --tag $OPENSUT_BASE_IMAGE_ID + echo "Building ${{env.OPENSUT_BASE_IMAGE_ID}}" + docker build . --file Dockerfile --tag ${{env.OPENSUT_BASE_IMAGE_ID}} - name: Push the Docker image - run: docker push $OPENSUT_BASE_IMAGE_ID + run: docker push ${{env.OPENSUT_BASE_IMAGE_ID}} + - name: Log out + run: docker logout