From 721a2fee06a4a0e5fa092ad5ef6079aebec07b30 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Thu, 28 Mar 2024 23:39:51 -0500 Subject: [PATCH] add buildah --- .github/workflows/build.yaml | 8 ++++---- Dockerfile | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2088850..1f1b11a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -40,7 +40,7 @@ jobs: # now fix up the images in k/runner.yaml sed -i -e "s@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:.*@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:$STAG@" "k/$DEPLOY_MANIFEST" - sed -i -e "s@branch: .*@$KBRANCH@" "k/$FLUX_MANIFEST" + sed -i -e "s@branch: .*@branch: $KBRANCH@" "k/$FLUX_MANIFEST" git add k git commit -m "upgrade runner sts to $STAG" @@ -49,11 +49,11 @@ jobs: # now let's fix the origin branch's flux.yaml if it's needed. # this will only happen once so it's not such an awful UX. git checkout "$BRANCH" - sed -i -e "s@branch: .*@$KBRANCH@" "k/$FLUX_MANIFEST" + sed -i -e "s@branch: .*@branch: $KBRANCH@" "k/$FLUX_MANIFEST" if git diff | grep -q .;then echo fixing branch in flux.yaml of the origin branch - git add k/flux.yaml - git commit -m "fix flux.yaml in $BRANCH" + git add "k/$FLUX_MANIFEST" + git commit -m "fix $FLUX_MANIFEST in $BRANCH" git push fi diff --git a/Dockerfile b/Dockerfile index 2c19864..bdceb8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN apk add \ nodejs \ tea \ curl \ + buildah \ --no-cache USER rootless