ci: only do final build on main branch

oitherwise there's no tag to pull from
This commit is contained in:
Josh J
2023-10-17 08:43:10 +01:00
parent b144c39680
commit ffea17e8e8

View File

@@ -61,7 +61,6 @@ jobs:
VERSION=${{ matrix.version }} VERSION=${{ matrix.version }}
push: true push: true
platforms: linux/${{ matrix.arch }} platforms: linux/${{ matrix.arch }}
# tags: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true
- name: Export Digests - name: Export Digests
@@ -80,6 +79,7 @@ jobs:
MergeRefs: MergeRefs:
name: Do The Horrible Merge Thing name: Do The Horrible Merge Thing
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- Docker_Build - Docker_Build