change to k-branches
Some checks failed
Github Actions Demo / Explore-Gitea-Actions (push) Failing after 23s

the history changing on every commit felt very yucky.
This commit is contained in:
James Andariese 2024-03-28 22:03:43 -05:00
parent bfb82dddcf
commit 156d1babd1
2 changed files with 6 additions and 2 deletions

View File

@ -21,9 +21,13 @@ jobs:
docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG" docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG" docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
done done
git checkout -B k-$GITHUB_REF_NAME
git checkout $GITHUB_REF_NAME
git branch -D k-$GITHUB_REF_NAME
git checkout -b k-$GITHUB_REF_NAME
sed -i -e "s@image: $DOCKER_REGISTRY/$GITHUB_REPOSITORY:.*@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.name "$GITHUB_REPOSITORY (act)"
git config user.email "gitea-actions@strudelline.net" git config user.email "gitea-actions@strudelline.net"
git add k/runner.yaml git add k/runner.yaml
git commit -m "upgrade runner sts to $STAG" git commit -m "upgrade runner sts to $STAG"
git push git push -f -u k-$GITHUB_REF_NAME

View File

@ -8,7 +8,7 @@ spec:
interval: 5m interval: 5m
url: https://git.strudelline.net/cascade/docker-act_runner url: https://git.strudelline.net/cascade/docker-act_runner
ref: ref:
branch: main branch: k-main
--- ---
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization