-
Notifications
You must be signed in to change notification settings - Fork 10
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
Standardizing CI #119
Merged
Merged
Standardizing CI #119
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ca375ac
Standardizing CI
trent-codecov 5bab7fb
Standardizing CI
trent-codecov f752228
Using ATS better
trent-codecov 22963da
Fixing tests for ats
trent-codecov 7b78767
Fix branches for builds
trent-codecov a79033c
Fix branches for builds
trent-codecov 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,14 @@ | ||
name: Create Self Hosted Release PR | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionName: | ||
description: 'Name of version (ie 23.9.5)' | ||
required: true | ||
|
||
jobs: | ||
create-release-pr: | ||
name: Create PR for Release ${{ github.event.inputs.versionName }} | ||
uses: codecov/gha-workflows/.github/workflows/create-self-hosted-pr.yml@main | ||
secrets: inherit |
This file contains 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 |
---|---|---|
|
@@ -7,30 +7,17 @@ on: | |
types: [closed] | ||
|
||
jobs: | ||
push_to_registry: | ||
create-release: | ||
name: Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub | ||
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') }} | ||
runs-on: ubuntu-latest | ||
environment: enterprise | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email [email protected] | ||
- id: get-release-vars | ||
name: Configure Release Vars | ||
run: | | ||
echo "release_version=$(cat VERSION)" >> "$GITHUB_OUTPUT" | ||
- name: Create GH Release | ||
uses: softprops/[email protected] | ||
with: | ||
token: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
name: Release ${{ steps.get-release-vars.outputs.release_version }} | ||
tag_name: self-hosted-${{ steps.get-release-vars.outputs.release_version }} | ||
generate_release_notes: true | ||
body: Autogenerated for ${{ steps.get-release-vars.outputs.release_version }}. Created for ${{ github.event.pull_request.html_url }} | ||
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} | ||
uses: codecov/gha-workflows/.github/workflows/create-self-hosted-release.yml@main | ||
secrets: inherit | ||
|
||
push-image: | ||
needs: [create-release] | ||
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} | ||
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@main | ||
secrets: inherit | ||
with: | ||
push_release: true | ||
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }} |
This file contains 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this munging added for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is doing a bit of hackery to use the dry run output for ATS. This will go away with some changes Gio is working on this sprint.