File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ jobs:
2828 MD_CONFIG : .github/md_config.json
2929 DOC_SRC : README.md
3030 MD_LINT_CONFIG : .markdownlint.yaml
31+
3132 build :
33+
34+ permissions :
35+ contents : read
36+
3237 runs-on : ubuntu-latest
3338 name : Build
34- if : " ! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
3539 steps :
3640 - name : Check out code
3741 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1717
1818jobs :
1919 build :
20+
21+ permissions :
22+ contents : read
23+ packages : write # to push artifacts to `ghcr.io`
24+
2025 name : Build
2126 if : github.event.pull_request.merged == true
2227 runs-on : ubuntu-latest
2732 with :
2833 token : ${{ secrets.STAKATER_GITHUB_TOKEN }}
2934 fetch-depth : 0 # otherwise, you will fail to push refs to dest repo
35+ submodules : recursive
3036
3137 # Setting up helm binary
3238 - name : Set up Helm
Original file line number Diff line number Diff line change 1515
1616jobs :
1717 build :
18+
19+ permissions :
20+ contents : read
21+ packages : write # to push artifacts to `ghcr.io`
22+
1823 name : GoReleaser build
1924 runs-on : ubuntu-latest
2025
2429 with :
2530 token : ${{ secrets.STAKATER_GITHUB_TOKEN }}
2631 fetch-depth : 0 # otherwise, you will fail to push refs to dest repo
32+ submodules : recursive
2733
2834 # Setting up helm binary
2935 - name : Set up Helm
@@ -171,22 +177,7 @@ jobs:
171177 org.opencontainers.image.created=${{ steps.prep.outputs.created }}
172178 org.opencontainers.image.revision=${{ github.sha }}
173179
174- - uses : dorny/paths-filter@v3
175- id : filter
176- with :
177- filters : |
178- docs:
179- - '.markdownlint.yaml'
180- - '.vale.ini'
181- - 'Dockerfile-docs'
182- - 'docs-nginx.conf'
183- - 'docs/**'
184- - 'README.md'
185- - 'theme_common'
186- - 'theme_override'
187-
188180 - name : Build and Push Docker Image for Docs to ghcr registry
189- if : steps.filter.outputs.docs == 'true'
190181 uses : docker/build-push-action@v5
191182 with :
192183 context : .
You can’t perform that action at this time.
0 commit comments