From 21da98526488675b311e0fa323b9db95edc37359 Mon Sep 17 00:00:00 2001 From: William P Date: Thu, 20 Mar 2025 10:13:47 -0400 Subject: [PATCH] use short sha for image tag --- .gitea/workflows/build-push.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index cd51771..ef92b79 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -11,6 +11,10 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: Set outputs + id: vars + run: | + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Checkout repo uses: actions/checkout@v4 @@ -32,4 +36,4 @@ jobs: push: true tags: | git.dubyatp.xyz/williamp/freeswitch:latest - git.dubyatp.xyz/williamp/freeswitch:${{ gitea.sha }} \ No newline at end of file + git.dubyatp.xyz/williamp/freeswitch:${{steps.vars.outputs.sha_short }} \ No newline at end of file