From 702551d66a4a2f5e18cc53a08a90c8067d0b7523 Mon Sep 17 00:00:00 2001 From: tomoron Date: Sat, 31 Jan 2026 15:27:27 +0100 Subject: [PATCH] add sha_short as tag of the images --- action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index df00fe2..6ea3bc2 100644 --- a/action.yml +++ b/action.yml @@ -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: |