File tree Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 5
5
image-tag :
6
6
required : true
7
7
type : string
8
+ github-repository :
9
+ required : true
10
+ type : string
8
11
9
12
jobs :
10
13
run-ci-basic :
11
14
name : Run CI | Basic
12
15
runs-on : ubuntu-22.04
13
16
timeout-minutes : 10
14
17
container :
15
- image : ghcr.io/${{ github. repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
18
+ image : ghcr.io/${{ inputs.github- repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
16
19
credentials :
17
20
username : ${{ github.actor }}
18
21
password : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 8
8
image-tag :
9
9
required : true
10
10
type : string
11
+ github-repository :
12
+ required : true
13
+ type : string
11
14
12
15
env :
13
16
GO_VERSION : " 1.19"
51
54
- name : Build and Push
52
55
uses : docker/build-push-action@v4
53
56
with :
54
- tags : ghcr.io/${{ github. repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
57
+ tags : ghcr.io/${{ inputs.github- repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
55
58
push : true
56
59
context : .
57
60
platforms : linux/amd64
Original file line number Diff line number Diff line change 8
8
image-tag :
9
9
required : true
10
10
type : string
11
+ github-repository :
12
+ required : true
13
+ type : string
11
14
12
15
concurrency :
13
16
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -19,13 +22,15 @@ jobs:
19
22
with :
20
23
commit-hash : ${{ inputs.commit-hash }}
21
24
image-tag : ${{ inputs.image-tag }}
25
+ github-repository : ${{ inputs.github-repository }}
22
26
secrets : inherit
23
27
24
28
run-ci-basic :
25
29
needs : build-test-image-amd64
26
30
uses : ./.github/workflows/ci-basic.yml
27
31
with :
28
32
image-tag : ${{ inputs.image-tag }}
33
+ github-repository : ${{ inputs.github-repository }}
29
34
secrets : inherit
30
35
31
36
run-ci-userspace-convertor :
34
39
with :
35
40
commit-hash : ${{ inputs.commit-hash }}
36
41
image-tag : ${{ inputs.image-tag }}
42
+ github-repository : ${{ inputs.github-repository }}
37
43
secrets : inherit
Original file line number Diff line number Diff line change 8
8
image-tag :
9
9
required : true
10
10
type : string
11
+ github-repository :
12
+ required : true
13
+ type : string
11
14
12
15
jobs :
13
16
run-ci-userspace-convertor :
14
17
name : Run CI | Userspace Convertor
15
18
runs-on : ubuntu-22.04
16
19
timeout-minutes : 10
17
20
container :
18
- image : ghcr.io/${{ github. repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
21
+ image : ghcr.io/${{ inputs.github- repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
19
22
credentials :
20
23
username : ${{ github.actor }}
21
24
password : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -45,11 +45,23 @@ jobs:
45
45
run : |
46
46
sudo GO_TESTFLAGS=-v make test
47
47
48
+ lowercase-repo :
49
+ name : Lowercase Repo
50
+ runs-on : ubuntu-22.04
51
+ timeout-minutes : 10
52
+ outputs :
53
+ repository : ${{ steps.lowercase_repository.outputs.repository }}
54
+ steps :
55
+ - id : lowercase_repository
56
+ run : echo "repository=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
57
+
48
58
e2e-test :
59
+ needs : lowercase-repo
49
60
name : E2E Test
50
61
if : ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') || github.event_name == 'push' }}
51
62
uses : ./.github/workflows/ci-e2e.yml
52
63
with :
53
64
commit-hash : ${{ github.event.pull_request.head.sha || github.sha }}
54
65
image-tag : ${{ github.event.pull_request.number || 'default' }}
66
+ github-repository : ${{ needs.lowercase-repo.outputs.repository }}
55
67
secrets : inherit
You can’t perform that action at this time.
0 commit comments