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

Use ATS docker action #137

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ concurrency:
jobs:
lint:
name: Run Lint
uses: codecov/gha-workflows/.github/workflows/lint.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/lint.yml@v1.2.0

build:
name: Build Worker
uses: codecov/gha-workflows/.github/workflows/build-app.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/build-app.yml@v1.2.0
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}
Expand All @@ -34,30 +34,32 @@ jobs:
codecovstartup:
name: Codecov Startup
needs: build
uses: codecov/gha-workflows/.github/workflows/codecov-startup.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/codecov-startup.yml@v1.2.0
secrets: inherit

ats:
name: ATS
needs: [build, codecovstartup]
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/run-ats.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/run-ats.yml@v1.2.0
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}
codecov_cli_upload_args: '--plugin pycoverage --plugin compress-pycoverage --flag onlysomelabels'
app_container_name: worker

test:
name: Test
needs: [build, codecovstartup]
uses: codecov/gha-workflows/.github/workflows/run-tests.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/run-tests.yml@v1.2.0
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}

build-self-hosted:
name: Build Self Hosted Worker
needs: [build, test]
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.0
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}
Expand All @@ -66,7 +68,7 @@ jobs:
name: Push Staging Image
needs: [build, test]
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.0
secrets: inherit
with:
environment: staging
Expand All @@ -76,7 +78,7 @@ jobs:
name: Push Production Image
needs: [ build, test ]
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/production') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.0
secrets: inherit
with:
environment: production
Expand All @@ -87,7 +89,7 @@ jobs:
needs: [ build-self-hosted, test ]
secrets: inherit
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/production') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.0
with:
push_rolling: true
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-worker' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-hosted-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:
jobs:
create-release-pr:
name: Create PR for Release ${{ github.event.inputs.versionName }}
uses: codecov/gha-workflows/.github/workflows/create-self-hosted-pr.yml@v1.0.0
uses: codecov/gha-workflows/.github/workflows/create-release-pr.yml@v1.2.0
secrets: inherit
6 changes: 4 additions & 2 deletions .github/workflows/self-hosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
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]
uses: codecov/gha-workflows/.github/workflows/[email protected]
with:
tag_to_prepend: self-hosted-
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@v1.0.0
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.0
secrets: inherit
with:
push_release: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ test_env.install_cli:
pip install --no-cache-dir codecov-cli

test_env.container_prepare:
apk add -U curl git build-base
apk add -U curl git build-base jq
make test_env.install_cli
git config --global --add safe.directory /worker

Expand Down