7 Commits
v1.1 ... v1.8

Author SHA1 Message Date
e81cd81797 always push latest to origin 2026-01-31 01:10:24 +01:00
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
67833554bc test 2026-01-30 14:15:26 +01:00
6418e84257 get secrets from input 2026-01-30 14:06:56 +01:00

View File

@ -10,10 +10,21 @@ inputs:
desciption: 'name of the package' desciption: 'name of the package'
required: false required: false
default: '${{ gitea.repository }}' default: '${{ gitea.repository }}'
username:
description: 'username used to push the package'
required: true
password:
description: 'password used to push the package'
required: true
runs: runs:
using: "composite" using: "composite"
steps: steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # required to see all branches
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
@ -21,12 +32,22 @@ runs:
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: git.tmoron.fr registry: git.tmoron.fr
username: ${{ secrets.PUSH_USERNAME }} username: ${{ inputs.username }}
password: ${{ secrets.PUSH_PASSWORD }} password: ${{ inputs.password }}
- 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 switch latest
git merge latest
else
git checkout -b latest
fi
git push origin latest