Skip to content

Commit ff4a307

Browse files
committed
ci: add BUILD_ENABLED toggle to docker workflow
1 parent 13a6107 commit ff4a307

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ on:
1313
env:
1414
REGISTRY: ghcr.io
1515
IMAGE_NAME: ${{ github.repository }}
16+
# Set to 1 to enable builds, 0 to disable for rapid iterations
17+
BUILD_ENABLED: 1
1618

1719
jobs:
1820
build-and-push:
21+
if: github.env.BUILD_ENABLED == '1' || vars.BUILD_ENABLED == '1'
1922
runs-on: ubuntu-latest
2023
permissions:
2124
contents: read

0 commit comments

Comments
 (0)