added multiple tags to docker push
Code Quality Pipeline / Test (push) Successful in 49s
pipeline / Show (push) Successful in 4s
CI Pipeline / Test (pull_request) Successful in 54s
CI Pipeline / Build and Publish (pull_request) Successful in 12s

This commit is contained in:
Brian Bjarke Jensen
2024-02-25 17:23:55 +01:00
parent 53a03d780d
commit b2b69981a1
+4 -3
View File
@@ -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