From b2b69981a101a2e8b2ca7842493796b3f3ad9404 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Sun, 25 Feb 2024 17:23:55 +0100 Subject: [PATCH] added multiple tags to docker push --- .gitea/workflows/publish.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index e4fef86..fcbf00d 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -1,5 +1,5 @@ name: CI Pipeline -run-name: Build and Publish Pipeline +run-name: ${{ gitea.actor }} is running the CI Pipeline runs-on: ubuntu-latest on: pull_request: @@ -36,7 +36,6 @@ jobs: uses: actions/checkout@v3 - name: Set Environment Variables run: | - echo $(git rev-parse --short ${{ gitea.sha }}) echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV" - name: Show Environment Variables run: | @@ -48,4 +47,6 @@ jobs: with: context: . push: true - tags: ${{vars.docker_repo_url}}/${{gitea.repository}}:latest + tags: | + ${{ vars.docker_repo_url }}/${{ gitea.repository }}:${{ env.sha_short }} + ${{ vars.docker_repo_url }}/${{ gitea.repository }}:latest