From c147c33414534d29da8a4aad29183df1a36a5263 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Thu, 28 Mar 2024 21:42:40 -0500 Subject: [PATCH] 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. --- .github/workflows/build.yaml | 2 +- k/runner.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 993331c..fea9260 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/k/runner.yaml b/k/runner.yaml index b18d43f..84c0cd7 100644 --- a/k/runner.yaml +++ b/k/runner.yaml @@ -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: