-
Notifications
You must be signed in to change notification settings - Fork 139
Chore: Use F5 artifactory GOPROXY and self-hosted runners #3718
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f42be9c
Use F5 artifactory GOPROXY and self-hosted runners
ciarams87 0fecf9b
Enable production artifactory
ciarams87 ac3a1fb
Add production workflow
ciarams87 2d2f3b8
Add dry run option
ciarams87 7d45da5
Add defaults
ciarams87 44b31c2
Fix dry run conditional
ciarams87 63a43fb
Make runner an input
ciarams87 c98b90a
Restore -rc tags in tests, improve release doc
ciarams87 0de78f6
Default to read permissions in production-release
ciarams87 8de73b9
Fix helm publish job
ciarams87 9fb1655
Merge branch 'main' into chore/secure-build-pipeline
ciarams87 99b8475
Merge branch 'main' into chore/secure-build-pipeline
ciarams87 b43bd4c
Update .github/workflows/ci.yml
ciarams87 1b2a1b6
Merge branch 'main' into chore/secure-build-pipeline
ciarams87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Production Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version (e.g., v2.0.3)' | ||
required: true | ||
type: string | ||
dry_run: | ||
description: 'If true, does a dry run of the production workflow' | ||
required: false | ||
type: boolean | ||
|
||
run-name: ${{ inputs.dry_run && '[DRY RUN] ' || '' }}Release ${{ inputs.version }} by @${{ github.actor }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
create-tag-and-release: | ||
runs-on: ubuntu-24.04 | ||
if: startsWith(github.ref, 'refs/heads/release-') | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Validate Release Branch and Version | ||
run: | | ||
echo "Validating release from: ${GITHUB_REF}" | ||
|
||
INPUT_VERSION="${{ github.event.inputs.version }}" | ||
|
||
# Validate version format | ||
if [[ ! "${INPUT_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "❌ Invalid version format: ${INPUT_VERSION}" | ||
echo "Expected format: v1.2.3" | ||
exit 1 | ||
fi | ||
|
||
echo "✅ Valid release branch: ${GITHUB_REF}" | ||
echo "✅ Valid version format: ${INPUT_VERSION}" | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create Release Tag | ||
run: | | ||
VERSION="${{ github.event.inputs.version }}" | ||
git config user.name "NGF Release Bot" | ||
git config user.email "[email protected]" | ||
|
||
if git rev-parse --verify "refs/tags/${VERSION}" >/dev/null 2>&1; then | ||
echo "Tag ${VERSION} already exists - skipping tag creation" | ||
else | ||
echo "Creating annotated tag ${VERSION}" | ||
git tag -a "${VERSION}" -m "Release ${VERSION}" | ||
sjberman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if [[ "${{ inputs.dry_run }}" == "true" ]]; then | ||
echo "DRY RUN: Would push tag ${VERSION}" | ||
git push --dry-run origin "${VERSION}" | ||
else | ||
git push origin "${VERSION}" | ||
echo "Created and pushed tag: ${VERSION}" | ||
fi | ||
fi | ||
|
||
production-build: | ||
needs: create-tag-and-release | ||
uses: ./.github/workflows/ci.yml | ||
with: | ||
is_production_release: true | ||
release_version: ${{ github.event.inputs.version }} | ||
dry_run: ${{ github.event.inputs.dry_run }} | ||
secrets: inherit | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
security-events: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.