diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07ec391..0a5d9ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -260,10 +260,9 @@ jobs: run: | containerLabel=${{ steps.get-docker-image-tag.outputs.dockerImageBaseUrl }}:${{ steps.get-docker-image-tag.outputs.simulatorVersion }} docker pull $containerLabel - imageId=docker image ls | grep ${{ steps.get-docker-image-tag.outputs.dockerImageBaseUrl }} \ - grep ${{ steps.get-docker-image-tag.outputs.simulatorVersion }} | awk '{ print $3; ]' + imageId=$(docker image ls | grep ${{ steps.get-docker-image-tag.outputs.dockerImageBaseUrl }} grep ${{ steps.get-docker-image-tag.outputs.simulatorVersion }} | awk '{ print $3; }') - dockerDigest=docker inspect --format='{{index .RepoDigests 0}}' $imageId | cut -d '@' -f 2 + dockerDigest=$(docker inspect --format='{{index .RepoDigests 0}}' $imageId | cut -d '@' -f 2) sed -i -E "s/__CONTAINER_DIGEST__/${dockerDigest}/g" biosimulators.json