Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
07fbaf6b31
|
|||
|
1c4cac54c7
|
@ -47,10 +47,16 @@ runs:
|
|||||||
|
|
||||||
- name: push to latest branch
|
- name: push to latest branch
|
||||||
run: |
|
run: |
|
||||||
|
git config user.name "auto"
|
||||||
|
git config user.email "auto@auto.com"
|
||||||
|
|
||||||
if git ls-remote --exit-code --heads origin latest; then
|
if git ls-remote --exit-code --heads origin latest; then
|
||||||
git switch latest
|
git switch latest
|
||||||
git merge master
|
git merge master
|
||||||
else
|
else
|
||||||
git checkout -b latest
|
git checkout -b latest
|
||||||
fi
|
fi
|
||||||
|
sed -i -E "s/image: (.*):.*/image: \1:${{ steps.get_hash.outputs.sha_short }}/" deployment.yaml
|
||||||
|
git add deployment.yaml
|
||||||
|
git commit -m "auto: set image tag in deployment"
|
||||||
git push origin latest
|
git push origin latest
|
||||||
|
|||||||
Reference in New Issue
Block a user