Skip to content

Commit d1300f7

Browse files
authored
Chore: fix helm and NFR tests in the pipeline (#4096)
* Fix permissions and container build issues * Fix build runner for nightly
1 parent 7374a97 commit d1300f7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ jobs:
352352
build-os: ${{ matrix.build-os }}
353353
tag: ${{ inputs.release_version || '' }}
354354
dry_run: ${{ inputs.dry_run || false}}
355-
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
355+
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
356356
permissions:
357357
contents: read # for docker/build-push-action to read repo content
358358
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -374,7 +374,7 @@ jobs:
374374
build-os: ${{ matrix.build-os }}
375375
tag: ${{ inputs.release_version || '' }}
376376
dry_run: ${{ inputs.dry_run || false }}
377-
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
377+
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
378378
permissions:
379379
contents: read # for docker/build-push-action to read repo content
380380
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
@@ -391,7 +391,7 @@ jobs:
391391
platforms: "linux/arm64, linux/amd64"
392392
tag: ${{ inputs.operator_version || '' }}
393393
dry_run: ${{ inputs.dry_run || false }}
394-
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
394+
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
395395
permissions:
396396
contents: read # for docker/build-push-action to read repo content
397397
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

build/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ ENV BUILD_AGENT=${BUILD_AGENT}
2020
ENTRYPOINT [ "/usr/bin/gateway" ]
2121

2222
FROM common AS container
23-
COPY --from=builder /go/src/github.com/nginxinc/nginx-gateway-fabric/build/out/gateway /usr/bin/
23+
COPY --chmod=0755 --from=builder /go/src/github.com/nginx/nginx-gateway-fabric/build/out/gateway /usr/bin/
2424

2525
FROM common AS local
26-
COPY ./build/out/gateway /usr/bin/
26+
COPY --chmod=0755 ./build/out/gateway /usr/bin/
2727

2828
FROM common AS goreleaser
2929
ARG TARGETARCH
30-
COPY dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/
30+
COPY --chmod=0755 dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/

0 commit comments

Comments
 (0)