diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8fa75446..86f83a12 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -165,7 +165,7 @@ jobs: if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) run: | echo "tags=$(echo '${{ steps.meta.outputs.tags }}' | grep -oE ':([^[:space:]]+)' | sed '/label/d' | sed 's/://g' | tr '\n' ' ')" >> $GITHUB_OUTPUT - single_tag=$( cut -d " " -f 1 << "$tags" ) >> $GITHUB_OUTPUT + echo "single_tag=$( cut -d " " -f 1 << "$tags" )" >> $GITHUB_OUTPUT - name: Pull database image if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) @@ -188,7 +188,7 @@ jobs: id: apply_labels if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) run: | - echo "FROM '${{ steps.build_image.outputs.image }}':'${{ steps.extract.outputs.single_tag }}'" | docker build -t ${{ steps.build_image.outputs.image }}:${{ steps.extract.outputs.single_tag }} --label ca.bc.gov.digitaltrust.build.source-location=${{ github.repositoryUrl }} --label ca.bc.gov.digitaltrust.build.commit.id=${{ github.sha }} - + echo "FROM ${{ steps.build_image.outputs.image }}:${{ steps.extract.outputs.single_tag }}" | docker build -t ${{ steps.build_image.outputs.image }}:${{ steps.extract.outputs.single_tag }} --label ca.bc.gov.digitaltrust.build.source-location=${{ github.repositoryUrl }} --label ca.bc.gov.digitaltrust.build.commit.id=${{ github.sha }} - - name: Push database image