File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 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
814jobs :
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 : .
You can’t perform that action at this time.
0 commit comments