Properly tag releases
This commit is contained in:
parent
940508eb38
commit
8078c354fc
1 changed files with 18 additions and 3 deletions
|
@ -9,6 +9,23 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: sif.g100.hornwitser.no:3000/furnavia/builder:latest
|
image: sif.g100.hornwitser.no:3000/furnavia/builder:latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Get image tags
|
||||||
|
id: info
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
tee -a ${GITHUB_OUTPUT} <<EOF
|
||||||
|
TAGS<<EOT
|
||||||
|
$(
|
||||||
|
echo ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
||||||
|
if [[ "${{ github.ref_name }}" =~ ^r[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
|
echo ${{ env.REGISTRY_IMAGE }}:latest
|
||||||
|
elif [[ "${{ github.ref_name }}" == forgejo ]]; then
|
||||||
|
echo ${{ env.REGISTRY_IMAGE }}:development
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
EOT
|
||||||
|
EOF
|
||||||
-
|
-
|
||||||
name: Authenticate
|
name: Authenticate
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@ -21,6 +38,4 @@ jobs:
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.info.outputs.TAGS }}
|
||||||
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
|
||||||
${{ env.REGISTRY_IMAGE }}:latest
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue