be more judicious in string replacements

init script broke because the image was alpine for that
container and this repo's image for the primary container.
the sed replacement clobbered both, rendering the init
inoperable.
This commit is contained in:
James Andariese 2024-03-28 21:42:40 -05:00
parent a6724a86f7
commit 2859447ed9

View File

@ -21,7 +21,7 @@ jobs:
docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
done
sed -i -e "s@image: .*@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:$STAG@" k/runner.yaml
sed -i -e "s@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:.*@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:$STAG@" k/runner.yaml
git config user.name "$GITHUB_REPOSITORY (act)"
git config user.email "gitea-actions@strudelline.net"
git add k/runner.yaml