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 9110d8a200
commit c147c33414
2 changed files with 2 additions and 2 deletions

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

View File

@ -36,7 +36,7 @@ spec:
- name: docker-certs
emptyDir: {}
initContainers:
- image: git.strudelline.net/cascade/docker-act_runner:main-2024-03-29-02.31.25
- image: alpine:3.19
imagePullPolicy: IfNotPresent
name: chowner
volumeMounts: