Compare commits
4 Commits
v1.2
...
915a2fc67e
| Author | SHA1 | Date | |
|---|---|---|---|
|
915a2fc67e
|
|||
|
afec455c18
|
|||
|
0188e62126
|
|||
|
67833554bc
|
14
action.yml
14
action.yml
@ -20,6 +20,8 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
@ -33,6 +35,16 @@ runs:
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ${{ inputs.path }}
|
||||
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