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: jobs:
test: test:
name: Test Build 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 runs-on: ubuntu-latest
container: node:20-alpine container: node:20-alpine
steps: steps:
@ -28,7 +28,7 @@ jobs:
build_and_push: build_and_push:
name: Build & Publish Docker Images name: Build & Publish Docker Images
needs: test 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 runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -57,7 +57,7 @@ jobs:
discord: discord:
name: Send Discord Notification name: Send Discord Notification
needs: build_and_push 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 runs-on: ubuntu-latest
steps: steps:
- name: Get Build Job Status - name: Get Build Job Status

Loading…
Cancel
Save