Skip to content

Commit 69798e4

Browse files
committed
ci: lowercase repo
Signed-off-by: Bowei Zhuang <zhuangbowei.zbw@alibaba-inc.com>
1 parent 2e758a0 commit 69798e4

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed

.github/workflows/ci-basic.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ on:
55
image-tag:
66
required: true
77
type: string
8+
github-repository:
9+
required: true
10+
type: string
811

912
jobs:
1013
run-ci-basic:
1114
name: Run CI | Basic
1215
runs-on: ubuntu-22.04
1316
timeout-minutes: 10
1417
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 }}
1619
credentials:
1720
username: ${{ github.actor }}
1821
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci-build-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
image-tag:
99
required: true
1010
type: string
11+
github-repository:
12+
required: true
13+
type: string
1114

1215
env:
1316
GO_VERSION: "1.19"
@@ -51,7 +54,7 @@ jobs:
5154
- name: Build and Push
5255
uses: docker/build-push-action@v4
5356
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 }}
5558
push: true
5659
context: .
5760
platforms: linux/amd64

.github/workflows/ci-e2e.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
image-tag:
99
required: true
1010
type: string
11+
github-repository:
12+
required: true
13+
type: string
1114

1215
concurrency:
1316
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -19,13 +22,15 @@ jobs:
1922
with:
2023
commit-hash: ${{ inputs.commit-hash }}
2124
image-tag: ${{ inputs.image-tag }}
25+
github-repository: ${{ inputs.github-repository }}
2226
secrets: inherit
2327

2428
run-ci-basic:
2529
needs: build-test-image-amd64
2630
uses: ./.github/workflows/ci-basic.yml
2731
with:
2832
image-tag: ${{ inputs.image-tag }}
33+
github-repository: ${{ inputs.github-repository }}
2934
secrets: inherit
3035

3136
run-ci-userspace-convertor:
@@ -34,4 +39,5 @@ jobs:
3439
with:
3540
commit-hash: ${{ inputs.commit-hash }}
3641
image-tag: ${{ inputs.image-tag }}
42+
github-repository: ${{ inputs.github-repository }}
3743
secrets: inherit

.github/workflows/ci-userspace-convertor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
image-tag:
99
required: true
1010
type: string
11+
github-repository:
12+
required: true
13+
type: string
1114

1215
jobs:
1316
run-ci-userspace-convertor:
1417
name: Run CI | Userspace Convertor
1518
runs-on: ubuntu-22.04
1619
timeout-minutes: 10
1720
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 }}
1922
credentials:
2023
username: ${{ github.actor }}
2124
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,23 @@ jobs:
4545
run: |
4646
sudo GO_TESTFLAGS=-v make test
4747
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+
4858
e2e-test:
59+
needs: lowercase-repo
4960
name: E2E Test
5061
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') || github.event_name == 'push' }}
5162
uses: ./.github/workflows/ci-e2e.yml
5263
with:
5364
commit-hash: ${{ github.event.pull_request.head.sha || github.sha }}
5465
image-tag: ${{ github.event.pull_request.number || 'default' }}
66+
github-repository: ${{ needs.lowercase-repo.outputs.repository }}
5567
secrets: inherit

0 commit comments

Comments
 (0)