1
0
Fork 0

Github Actions

Build edge tag on push to main
Build dev tag on push to dev
Build latest tag on pushing a tag
Only react to semVer tags
This commit is contained in:
Salvoxia 2024-09-25 20:27:12 +02:00
parent adc40a9056
commit f1866a9f2d

View file

@ -8,7 +8,7 @@ on:
- main
- dev
tags:
- '[0-9]+.*'
- '[0-9]+\.[0-9]+\.[0-9]+'
jobs:
docker:
@ -32,12 +32,14 @@ jobs:
${{ steps.image_name.outputs.image_name }}
# generate Docker tags based on the following events/attributes
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# set edge tag for dev branch
type=edge,enable=true,branch=dev
# set edge tag for default branch
type=edge,enable={{is_default_branch}}
# set dev tag for dev branch
type=raw,value=dev,enable=true,branch=dev
# Tags for non SemVer tag names
type=match,pattern=([0-9]+.*),group=1
# latest tag for any tags
type=raw,value=latest,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v3