be more judicious in string replacements
Some checks failed
Github Actions Demo / Explore-Gitea-Actions (push) Failing after 4s

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 9110d8a200
commit 9a074f6933

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