diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 78ba6a80..8fa75446 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -166,7 +166,7 @@ jobs: 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 - + - name: Pull database image if: contains(fromJSON('["aries-endorser-db"]'), matrix.service) run: | @@ -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 }} | --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