2 Commits
v1.9 ... master

Author SHA1 Message Date
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

View File

@ -22,8 +22,11 @@ runs:
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # required to see all branches
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
@ -40,7 +43,7 @@ runs:
with:
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: |
@ -50,4 +53,7 @@ runs:
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