Skip to content

Modular logistics and supply chain operating system (LSOS)

Use Docker edge tag for commits in main, even untagged

Eugene Dementyev80b43ffa72c6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 69e9da13..a6af8464 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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) }}"