Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish package for agent #866

Merged
merged 9 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
name: nginx-agent-unsigned-snapshots
path: build
retention-days: 1

generate-pgo-profile:
name: Generate Profile
needs: build-unsigned-snapshot
Expand Down Expand Up @@ -261,7 +260,6 @@ jobs:
- name: Push benchmark result
if: ${{ success() && github.ref_name == 'v3'}}
run: git push 'https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/nginx/agent.git' benchmark-results:benchmark-results

load-tests:
name: Load Tests
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }}
Expand Down Expand Up @@ -334,3 +332,20 @@ jobs:
- name: Push load test result
if: ${{ success() && github.ref_name == 'v3'}}
run: git push 'https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/nginx/agent.git' benchmark-results:benchmark-results
publish-packages:
name: Publish NGINX Agent v3 packages
if: ${{ github.event_name =='pull_request' &&
github.base_ref == 'v3' &&
github.event.pull_request.merged == true &&
!github.event.pull_request.head.repo.fork }}
needs: [ lint, unit-test, performance-tests,
load-tests, official-oss-image-integration-tests,
official-plus-image-integration-tests,
race-condition-test ]
uses: ./.github/workflows/release-branch.yml
with:
packageVersion: "3.0.0"
packageBuildNo: "${{ github.run_number }}"
dhurley marked this conversation as resolved.
Show resolved Hide resolved
uploadAzure: true
publishPackages: true
releaseBranch: "v3"
dhurley marked this conversation as resolved.
Show resolved Hide resolved
26 changes: 26 additions & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ on:
description: 'Release branch to build & publish from'
required: true
type: string
workflow_call:
inputs:
githubRelease:
type: boolean
default: false
packageVersion:
type: string
default: "3.0.0"
packageBuildNo:
type: string
default: "1"
uploadAzure:
type: boolean
default: true
publishPackages:
type: boolean
default: true
tagRelease:
type: boolean
default: false
createPullRequest:
type: boolean
default: false
releaseBranch:
type: string
required: true

env:
NFPM_VERSION: 'v2.35.3'
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading