Skip to content

Commit fb21e86

Browse files
committed
ci(github): allow to force docker build from workflow dispatch
1 parent f30faf1 commit fb21e86

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docker_quarto.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches: [main]
66
workflow_dispatch:
7+
inputs:
8+
force_docker_build:
9+
description: 'Force Docker build (skip change detection)'
10+
required: true
11+
type: boolean
12+
default: false
713

814
jobs:
915
publish-docker:
@@ -29,15 +35,15 @@ jobs:
2935
- 'renv/**'
3036
3137
- name: Login to GitHub Container Registry
32-
if: steps.changes.outputs.docker == 'true'
38+
if: inputs.force_docker_build || steps.changes.outputs.docker == 'true'
3339
uses: docker/login-action@v3
3440
with:
3541
registry: ghcr.io
3642
username: ${{ github.actor }}
3743
password: ${{ secrets.GITHUB_TOKEN }}
3844

3945
- name: Build the Docker image
40-
if: steps.changes.outputs.docker == 'true'
46+
if: inputs.force_docker_build || steps.changes.outputs.docker == 'true'
4147
uses: docker/build-push-action@v6
4248
with:
4349
context: .

0 commit comments

Comments
 (0)