Skip to content

Commit

Permalink
Change to dynamically switch CI container image tag (#2310)
Browse files Browse the repository at this point in the history
* feat: use ci image tag when ci container image is created

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>

* fix: use container image tag

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>

---------

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Jan 29, 2024
1 parent 73416fc commit 52ca812
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

build-linux:
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

build:
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

codeql-build:
name: CodeQL
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

coverage:
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/e2e-code-bench-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

grpc-sequential:
name: grpc-sequential
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -87,8 +91,9 @@ jobs:
grpc-stream:
name: grpc-stream
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

fossa-scan:
name: "trigger FOSSA scan"
needs: [dump-contexts-to-log]
runs-on: ubuntu-latest
needs: [dump-contexts-to-log, detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/helm-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

lint-vald-chart:
name: lint for vald chart
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- name: Check out code.
uses: actions/checkout@v4
Expand All @@ -54,8 +58,9 @@ jobs:
lint-vald-helm-operator-chart:
name: lint for vald-helm-operator chart
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- name: Check out code.
uses: actions/checkout@v4
Expand All @@ -79,6 +84,9 @@ jobs:
lint-values-schema:
name: lint for values schema
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- name: Check out code.
uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

update-helm-chart:
name: Update Helm chart
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/reviewdog-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

kubeval-conflint:
name: runner / kubeval-conflint
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: mumoshu/conflint:latest
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand All @@ -53,8 +57,9 @@ jobs:
kubelinter-k8s-manifests:
name: runner / kubelinter
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand All @@ -74,8 +79,9 @@ jobs:
kubelinter-vald-chart:
name: runner / kubelinter for vald chart
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dump-context

detect-ci-container:
uses: ./.github/workflows/_detect-ci-container.yml

golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
needs: [detect-ci-container]
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }}
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 52ca812

Please sign in to comment.