diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ccbe60be3..0d2a43626a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -352,7 +352,7 @@ jobs: build-os: ${{ matrix.build-os }} tag: ${{ inputs.release_version || '' }} dry_run: ${{ inputs.dry_run || false}} - 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' }} + 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' }} permissions: contents: read # for docker/build-push-action to read repo content security-events: write # for github/codeql-action/upload-sarif to upload SARIF results @@ -374,7 +374,7 @@ jobs: build-os: ${{ matrix.build-os }} tag: ${{ inputs.release_version || '' }} dry_run: ${{ inputs.dry_run || false }} - 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' }} + 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' }} permissions: contents: read # for docker/build-push-action to read repo content security-events: write # for github/codeql-action/upload-sarif to upload SARIF results @@ -391,7 +391,7 @@ jobs: platforms: "linux/arm64, linux/amd64" tag: ${{ inputs.operator_version || '' }} dry_run: ${{ inputs.dry_run || false }} - 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' }} + 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' }} permissions: contents: read # for docker/build-push-action to read repo content security-events: write # for github/codeql-action/upload-sarif to upload SARIF results diff --git a/build/Dockerfile b/build/Dockerfile index fa96a66180..ecfc26965f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -20,11 +20,11 @@ ENV BUILD_AGENT=${BUILD_AGENT} ENTRYPOINT [ "/usr/bin/gateway" ] FROM common AS container -COPY --from=builder /go/src/github.com/nginxinc/nginx-gateway-fabric/build/out/gateway /usr/bin/ +COPY --chmod=0755 --from=builder /go/src/github.com/nginx/nginx-gateway-fabric/build/out/gateway /usr/bin/ FROM common AS local -COPY ./build/out/gateway /usr/bin/ +COPY --chmod=0755 ./build/out/gateway /usr/bin/ FROM common AS goreleaser ARG TARGETARCH -COPY dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/ +COPY --chmod=0755 dist/gateway_linux_$TARGETARCH*/gateway /usr/bin/