Skip to content

Commit c06ecd1

Browse files
authored
Merge pull request #728 from stakater/misc-work
Misc fixes to workflows
2 parents 76372be + babe5b0 commit c06ecd1

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ env:
1717

1818
jobs:
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
@@ -27,6 +32,7 @@ jobs:
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

.github/workflows/release.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ env:
1515

1616
jobs:
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

@@ -24,6 +29,7 @@ jobs:
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: .

0 commit comments

Comments
 (0)