Compare commits
6 Commits
v1.2
...
e81cd81797
| Author | SHA1 | Date | |
|---|---|---|---|
|
e81cd81797
|
|||
|
9423cbc331
|
|||
|
915a2fc67e
|
|||
|
afec455c18
|
|||
|
0188e62126
|
|||
|
67833554bc
|
17
action.yml
17
action.yml
@ -20,6 +20,11 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0 # required to see all branches
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
@ -33,6 +38,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
|
||||
fi
|
||||
git push origin latest
|
||||
|
||||
Reference in New Issue
Block a user