10 Commits
v1.2 ... v1.12

Author SHA1 Message Date
07fbaf6b31 set name and email 2026-01-31 16:11:21 +01:00
1c4cac54c7 action changes image tag 2026-01-31 15:58:50 +01:00
702551d66a add sha_short as tag of the images 2026-01-31 15:27:27 +01:00
d4331bbef4 merge with master not latest 2026-01-31 01:14:19 +01:00
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

View File

@ -20,6 +20,14 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: get commit hash
id: get_hash
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@ -33,6 +41,22 @@ 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
tags: git.tmoron.fr/${{ inputs.name }}:${{ steps.get_hash.outputs.sha_short }}
- name: push to latest branch
run: |
git config user.name "auto"
git config user.email "auto@auto.com"
if git ls-remote --exit-code --heads origin latest; then
git switch latest
git merge master
else
git checkout -b latest
fi
sed -i -E "s/image: (.*):.*/image: \1:${{ steps.get_hash.outputs.sha_short }}/" deployment.yaml
git add deployment.yaml
git commit -m "auto: set image tag in deployment"
git push origin latest