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