Skip to content

Commit

Permalink
Github Actions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Salvoxia committed Sep 25, 2024
1 parent adc40a9 commit f1866a9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
- dev
tags:
- '[0-9]+.*'
- '[0-9]+\.[0-9]+\.[0-9]+'

jobs:
docker:
Expand All @@ -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
Expand Down

0 comments on commit f1866a9

Please sign in to comment.