Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 2d583d9

Browse files
authored
Merge pull request #35 from Crossbell-Box/feat-optimize-ci
feat: optimize ci
2 parents 17d9cde + 112621d commit 2d583d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
name: Build & Deploy
33

44
on:
5+
release:
6+
types: [published]
57
push:
68
branches:
79
- "main"
8-
tags:
9-
- "*"
1010

1111
env:
1212
IMAGE_NAME: flosspicks/crossbell-io
@@ -47,6 +47,7 @@ jobs:
4747
labels: ${{ steps.meta.outputs.labels }}
4848

4949
deploy-dev:
50+
if: github.ref == 'refs/heads/main'
5051
runs-on: ubuntu-latest
5152
needs: build
5253
steps:
@@ -68,7 +69,7 @@ jobs:
6869
deploy-prod:
6970
if: startsWith(github.ref, 'refs/tags/v')
7071
runs-on: ubuntu-latest
71-
needs: [build, deploy-dev]
72+
needs: [build]
7273
steps:
7374
- name: Checkout
7475
uses: actions/checkout@v2

0 commit comments

Comments
 (0)