mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
Use Docker edge tag for commits in main, even untagged
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -43,11 +43,12 @@ jobs:
|
||||
images: |
|
||||
willbereplaced
|
||||
tags: |
|
||||
type=edge,branch=main
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Build and release
|
||||
if: startsWith(github.ref, 'refs/tags/') && success()
|
||||
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && success()
|
||||
env:
|
||||
# get tags from the json object and pass as a string-encoded list
|
||||
tags: "${{ toJSON(fromJSON(steps.meta.outputs.json).tags) }}"
|
||||
|
||||
Reference in New Issue
Block a user