4 Commits
v1.3 ... v1.7

Author SHA1 Message Date
9423cbc331 checkout get all branches 2026-01-31 01:04:07 +01:00
915a2fc67e maybe needs action checkout 2026-01-31 00:51:21 +01:00
afec455c18 maybe incompatible syntax in the last action 2026-01-30 23:54:40 +01:00
0188e62126 add push to latest action 2026-01-30 23:45:10 +01:00

View File

@ -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,5 +38,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