Skip to content

Commit

Permalink
feat: optimize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sljeff committed Aug 24, 2022
1 parent 17d9cde commit 112621d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
name: Build & Deploy

on:
release:
types: [published]
push:
branches:
- "main"
tags:
- "*"

env:
IMAGE_NAME: flosspicks/crossbell-io
Expand Down Expand Up @@ -47,6 +47,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

deploy-dev:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
Expand All @@ -68,7 +69,7 @@ jobs:
deploy-prod:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build, deploy-dev]
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 112621d

Please sign in to comment.