added multiple tags to docker push
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: CI Pipeline
|
name: CI Pipeline
|
||||||
run-name: Build and Publish Pipeline
|
run-name: ${{ gitea.actor }} is running the CI Pipeline
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -36,7 +36,6 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set Environment Variables
|
- name: Set Environment Variables
|
||||||
run: |
|
run: |
|
||||||
echo $(git rev-parse --short ${{ gitea.sha }})
|
|
||||||
echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV"
|
echo "sha_short=$(git rev-parse --short ${{ gitea.sha }} )" >> "$GITHUB_ENV"
|
||||||
- name: Show Environment Variables
|
- name: Show Environment Variables
|
||||||
run: |
|
run: |
|
||||||
@@ -48,4 +47,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user