Skip to content

Commit 68863e8

Browse files
committed
add self-hosted release CI workflows
1 parent ac3d6a4 commit 68863e8

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Create Self Hosted Release PR
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: "Name of version (ie 23.9.5)"
8+
required: true
9+
10+
jobs:
11+
create-release-pr:
12+
name: Create PR for Release ${{ github.event.inputs.versionName }}
13+
uses: codecov/gha-workflows/.github/workflows/[email protected]
14+
secrets: inherit
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
iname: Create Self Hosted Release
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [closed]
8+
9+
permissions:
10+
contents: "read"
11+
id-token: "write"
12+
13+
jobs:
14+
create-release:
15+
name: Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub
16+
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
17+
uses: codecov/gha-workflows/.github/workflows/[email protected]
18+
with:
19+
tag_to_prepend: self-hosted-
20+
secrets: inherit
21+
22+
push-worker-image:
23+
needs: [create-release]
24+
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
25+
uses: codecov/gha-workflows/.github/workflows/[email protected]
26+
secrets: inherit
27+
with:
28+
push_release: true
29+
repo: ${{ vars.CODECOV_WORKER_IMAGE_V2 || 'codecov/self-hosted-worker' }}
30+
working_directory: apps/worker
31+
32+
push-api-image:
33+
needs: [create-release]
34+
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
35+
uses: codecov/gha-workflows/.github/workflows/[email protected]
36+
secrets: inherit
37+
with:
38+
push_release: true
39+
repo: ${{ vars.CODECOV_API_IMAGE_V2 || 'codecov/self-hosted-api' }}
40+
working_directory: apps/codecov-api

0 commit comments

Comments
 (0)