diff --git a/.github/workflows/apptainer-image.yml b/.github/workflows/apptainer-image.yml index e800492..004b0e0 100644 --- a/.github/workflows/apptainer-image.yml +++ b/.github/workflows/apptainer-image.yml @@ -23,12 +23,12 @@ jobs: cont_name=$(echo "${GITHUB_REF_NAME:-}" | sed -E 's/^sif-//; s/-v[0-9]+[.].*$//') echo "Container name is $cont_name." [ -d "${cont_name:-}" ] || exit 1 - pushd "${cont_name}" && apptainer build --fakeroot --fix-perms --warn-unused-build-args --build-arg ORAS_REPO="${{ github.repository }}" ../${cont_name}.sif Singularity && popd + cd "${cont_name}" + apptainer build --fakeroot --fix-perms --warn-unused-build-args --build-arg ORAS_REPO="${{ github.repository }}" ../${cont_name}.sif Singularity && popd tag="${tag:-latest}" echo "Tag is $tag." echo "tag=$tag" >> $GITHUB_ENV echo "cont_name=$cont_name" >> $GITHUB_ENV - popd - name: Login and Deploy Container run: | [ -r "${cont_name}.sif" ] || exit 1