Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
afec455c18
|
|||
|
0188e62126
|
11
action.yml
11
action.yml
@ -33,5 +33,16 @@ runs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: "{{defaultContext}}:${{ input.path }}"
|
||||
push: true
|
||||
tags: git.tmoron.fr/${{ inputs.name }}:latest
|
||||
|
||||
- name: push to latest branch
|
||||
run: |
|
||||
if git ls-remote --exit-code --heads origin latest; then
|
||||
git switch latest
|
||||
git merge latest
|
||||
else
|
||||
git checkout -b latest
|
||||
git push origin latest
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user