-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI consolidate * CI consolidate * Adding some more bun * Adding some more bun
- Loading branch information
1 parent
f70b85c
commit e5adcc5
Showing
6 changed files
with
73 additions
and
155 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ name: Gazebo CI | |
|
||
on: | ||
push: | ||
tags: | ||
- self-hosted-* | ||
branches: | ||
- main | ||
- staging | ||
|
@@ -107,47 +105,6 @@ jobs: | |
run: | | ||
npm run type-check | ||
codecovstartup: | ||
name: Codecov Startup | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Install CLI | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
pip install --no-cache-dir codecov-cli | ||
- name: Run Startup | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | ||
run: | | ||
codecovcli create-commit --fail-on-error | ||
codecovcli create-report --fail-on-error | ||
- name: Run Startup Staging | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_STAGING_URL }} create-commit -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_STAGING_URL }} create-report -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --fail-on-error | ||
- name: Run Startup QA | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_QA_URL }} create-commit -t ${{ secrets.CODECOV_QA_TOKEN }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_QA_URL }} create-report -t ${{ secrets.CODECOV_QA_TOKEN }} --fail-on-error | ||
- name: Run Startup Public QA | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_PUBLIC_QA_URL }} create-commit -t ${{ secrets.CODECOV_PUBLIC_QA_TOKEN }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_PUBLIC_QA_URL }} create-report -t ${{ secrets.CODECOV_PUBLIC_QA_TOKEN }} --fail-on-error | ||
runner-indexes: | ||
runs-on: ubuntu-latest | ||
name: Generate runner indexes | ||
|
@@ -165,7 +122,7 @@ jobs: | |
test: | ||
name: 'Test Runner #${{ matrix.runner-index }}' | ||
needs: [install, codecovstartup, runner-indexes] | ||
needs: [install, runner-indexes] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -216,22 +173,22 @@ jobs: | |
- name: Upload to Production | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli do-upload -t ${{ secrets.CODECOV_ORG_TOKEN }} --fail-on-error | ||
codecovcli upload-process -t ${{ secrets.CODECOV_ORG_TOKEN }} --fail-on-error | ||
- name: Upload to Staging | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_STAGING_URL }} do-upload -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_STAGING_URL }} upload-process -t ${{ secrets.CODECOV_ORG_TOKEN_STAGING }} --fail-on-error | ||
- name: Upload to QA | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_QA_URL }} do-upload -t ${{ secrets.CODECOV_QA_TOKEN }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_QA_URL }} upload-process -t ${{ secrets.CODECOV_QA_TOKEN }} --fail-on-error | ||
- name: Upload to Public QA | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
run: | | ||
codecovcli -u ${{ secrets.CODECOV_PUBLIC_QA_URL }} do-upload -t ${{ secrets.CODECOV_PUBLIC_QA_TOKEN }} --fail-on-error | ||
codecovcli -u ${{ secrets.CODECOV_PUBLIC_QA_URL }} upload-process -t ${{ secrets.CODECOV_PUBLIC_QA_TOKEN }} --fail-on-error | ||
storybook: | ||
name: Run storybook | ||
|
@@ -316,31 +273,22 @@ jobs: | |
run: | | ||
npm run build | ||
self-hosted: | ||
name: Build Self Hosted Gazebo | ||
runs-on: ubuntu-latest | ||
needs: [install, test] | ||
if: ${{ github.event.pull_request.merged == true && (github.head_ref == 'main' || startsWith(github.ref, 'refs/tags/self-hosted')) && github.repository_owner == 'codecov' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build self hosted | ||
run: | | ||
make build | ||
- name: Log in to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.CODECOV_DEVOPS_DOCKER_USERNAME }} | ||
password: ${{ secrets.CODECOV_DEVOPS_DOCKER_PASSWORD }} | ||
|
||
- name: Push self hosted rolling | ||
if: github.head_ref == 'main' | ||
run: | | ||
make push | ||
build-self-hosted: | ||
name: Build Self Hosted Image | ||
secrets: inherit | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }} | ||
uses: codecov/gha-workflows/.github/workflows/[email protected] | ||
with: | ||
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-frontend' }} | ||
cache_requirements: false | ||
|
||
- name: Push self hosted release | ||
if: startsWith(github.ref, 'refs/tags/self-hosted') | ||
run: | | ||
make release | ||
self-hosted: | ||
name: Push Self Hosted Image | ||
needs: [ build-self-hosted, test ] | ||
secrets: inherit | ||
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }} | ||
uses: codecov/gha-workflows/.github/workflows/[email protected] | ||
with: | ||
push_rolling: true | ||
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-frontend' }} | ||
cache_requirements: false |
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/[email protected] | ||
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,18 @@ on: | |
types: [closed] | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Tag Release ${{ github.head_ref }} | ||
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 }} | ||
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/') && github.repository_owner == 'codecov' }} | ||
uses: codecov/gha-workflows/.github/workflows/[email protected] | ||
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/[email protected] | ||
secrets: inherit | ||
with: | ||
push_release: true | ||
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-frontend' }} | ||
cache_requirements: false |
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