3 Commits

Author SHA1 Message Date
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,6 +10,12 @@ inputs:
desciption: 'name of the package'
required: false
default: '${{ gitea.repository }}'
username:
description: 'username used to push the package'
required: true
password:
description: 'password used to push the package'
required: true
runs:
using: "composite"
@ -21,12 +27,22 @@ runs:
uses: docker/login-action@v2
with:
registry: git.tmoron.fr
username: ${{ secrets.PUSH_USERNAME }}
password: ${{ secrets.PUSH_PASSWORD }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- 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 checkout -b latest
git push origin latest
else
git switch latest
git merge latest
fi