add commit message option to skip docker image builds in ci (#1168) [skip ci]

This commit is contained in:
Wing Lian
2024-01-22 19:55:36 -05:00
committed by GitHub
parent 32580c1ca7
commit 0f77b8d798

View File

@@ -7,7 +7,7 @@ on:
jobs:
build-axolotl:
if: github.repository_owner == 'OpenAccess-AI-Collective'
if: ${{ ! contains(github.event.commits[0].message, '[skip docker]]') && github.repository_owner == 'OpenAccess-AI-Collective' }}
# this job needs to be run on self-hosted GPU runners...
strategy:
fail-fast: false
@@ -79,7 +79,7 @@ jobs:
build-axolotl-runpod:
needs: build-axolotl
if: github.repository_owner == 'OpenAccess-AI-Collective'
if: ${{ ! contains(github.event.commits[0].message, '[skip docker]]') && github.repository_owner == 'OpenAccess-AI-Collective' }}
# this job needs to be run on self-hosted GPU runners...
strategy:
matrix: