change to k-branches
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 7s

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 5b5c11844f
commit 5b77155140
2 changed files with 8 additions and 3 deletions

View File

@ -21,9 +21,14 @@ jobs:
docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
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@branch: .*@k-$GITHUB_REF_NAME@" k/flux.yaml
git config user.name "$GITHUB_REPOSITORY (act)"
git config user.email "gitea-actions@strudelline.net"
git add k/runner.yaml
git add k
git commit -m "upgrade runner sts to $STAG"
git push
git push -f origin k-$GITHUB_REF_NAME

View File

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