Skip to content

Commit

Permalink
Update GH workflows
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
robomics committed Mar 10, 2022
1 parent 0e639f9 commit 35e21b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Build Docker image

on:
create:
tags:
- 'v*.*.*'

push:
branches: [ main, devel, ci-devel ]
paths:
Expand Down Expand Up @@ -83,11 +87,14 @@ jobs:
uses: docker/metadata-action@v3
with:
images: ${{ github.repository }},ghcr.io/${{ github.repository }}
flavor: |
latest=true
tags: |
type=semver,priority=1000,pattern={{version}}
type=sha,priority=900
type=ref,priority=800,event=branch
type=ref,priority=700,event=pr
type=raw,value=stable,priority=800,enable=${{ !startsWith(github.ref, 'refs/tags/v') }}
type=ref,priority=700,event=branch
type=ref,priority=600,event=pr
- name: Login to DockerHub
if: github.event_name != 'pull_request'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Unit tests Ubuntu

on:
create:
tags:
- 'v*.*.*'

push:
branches: [ main, devel, ci-devel ]
paths:
Expand Down

0 comments on commit 35e21b8

Please sign in to comment.