fix: don't compile every time because it takes forever

pull/243/head
Josh Moore 1 year ago
parent a39a13e47b
commit 4f49312c12

@ -9,7 +9,7 @@ on:
jobs:
test:
name: Test Build
if: "!contains(github.event.head_commit.message, '[skip ci:docker]')"
if: contains(github.event.head_commit.message, '[docker build]')
runs-on: ubuntu-latest
container: node:20-alpine
steps:
@ -28,7 +28,7 @@ jobs:
build_and_push:
name: Build & Publish Docker Images
needs: test
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev/0.15.0') && !contains(github.event.head_commit.message, '[skip ci:docker]') }}
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev/0.15.0') && contains(github.event.head_commit.message, '[docker build]') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -57,7 +57,7 @@ jobs:
discord:
name: Send Discord Notification
needs: build_and_push
if: always() && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[skip ci:docker]')
if: always() && github.event_name != 'pull_request' && contains(github.event.head_commit.message, '[docker build]')
runs-on: ubuntu-latest
steps:
- name: Get Build Job Status

Loading…
Cancel
Save