Skip to content

Commit

Permalink
Temporarily stop publishing packages on v3 branch (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley authored Sep 30, 2024
1 parent 7ab5bea commit 18a2ff3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ 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-vars:
name: Set workflow variables
if: ${{ github.ref_name == 'v3' &&
Expand All @@ -344,22 +345,22 @@ jobs:
id: get_build_num
run: echo "build_num=${{ github.run_number }}-$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT

publish-packages:
name: Publish NGINX Agent v3 packages
if: ${{ github.ref_name == 'v3' &&
!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, publish-packages-vars ]
uses: ./.github/workflows/release-branch.yml
secrets: inherit
permissions:
id-token: write
contents: read
with:
packageVersion: "3.0.0"
packageBuildNo: "${{ needs.publish-packages-vars.outputs.package_build_num }}"
uploadAzure: true
publishPackages: true
releaseBranch: "v3"
# publish-packages:
# name: Publish NGINX Agent v3 packages
# if: ${{ github.ref_name == 'v3' &&
# !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, publish-packages-vars ]
# uses: ./.github/workflows/release-branch.yml
# secrets: inherit
# permissions:
# id-token: write
# contents: read
# with:
# packageVersion: "3.0.0"
# packageBuildNo: "${{ needs.publish-packages-vars.outputs.package_build_num }}"
# uploadAzure: true
# publishPackages: true
# releaseBranch: "v3"
5 changes: 4 additions & 1 deletion .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,14 @@ jobs:
build-args: |
package_type=signed-package
- name: Set the VERSION environment variable
run: echo VERSION=v${{ inputs.packageVersion }} >> $GITHUB_ENV

- name: Build Packages
env:
GPG_KEY: ${{ secrets.INDIGO_GPG_AGENT }}
NFPM_SIGNING_KEY_FILE: .key.asc
VERSION: ${{ inputs.packageVersion }}
VERSION: ${{ env.VERSION }}
PACKAGE_BUILD: ${{ inputs.packageBuildNo }}
run: |
export PATH=$PATH:~/go/bin
Expand Down

0 comments on commit 18a2ff3

Please sign in to comment.