2023-07-17 10:08:20 +02:00
|
|
|
name: ZITADEL CI/CD
|
|
|
|
|
2023-07-17 10:55:41 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2023-07-17 10:08:20 +02:00
|
|
|
|
2024-03-28 08:15:03 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-07-17 10:08:20 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
2023-07-25 08:43:06 +02:00
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
2023-07-17 10:08:20 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
core:
|
|
|
|
uses: ./.github/workflows/core.yml
|
|
|
|
with:
|
2023-09-28 14:59:58 +02:00
|
|
|
node_version: "20"
|
|
|
|
buf_version: "latest"
|
2024-04-15 12:17:36 +03:00
|
|
|
go_version: "1.22"
|
2023-09-28 14:59:58 +02:00
|
|
|
|
2023-07-17 10:08:20 +02:00
|
|
|
console:
|
|
|
|
uses: ./.github/workflows/console.yml
|
|
|
|
with:
|
2023-09-28 14:59:58 +02:00
|
|
|
node_version: "20"
|
|
|
|
buf_version: "latest"
|
2023-07-17 10:08:20 +02:00
|
|
|
|
|
|
|
version:
|
|
|
|
uses: ./.github/workflows/version.yml
|
|
|
|
with:
|
2024-04-10 13:56:05 +02:00
|
|
|
semantic_version: "23.0.7"
|
2023-07-17 10:08:20 +02:00
|
|
|
dry_run: true
|
|
|
|
|
|
|
|
compile:
|
|
|
|
needs: [core, console, version]
|
|
|
|
uses: ./.github/workflows/compile.yml
|
|
|
|
with:
|
2024-04-15 12:17:36 +03:00
|
|
|
go_version: "1.22"
|
2023-07-17 10:08:20 +02:00
|
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
|
|
console_cache_key: ${{ needs.console.outputs.cache_key }}
|
|
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
|
|
|
console_cache_path: ${{ needs.console.outputs.cache_path }}
|
|
|
|
version: ${{ needs.version.outputs.version }}
|
|
|
|
|
2024-02-19 07:50:37 +01:00
|
|
|
core-test:
|
2023-07-17 10:08:20 +02:00
|
|
|
needs: core
|
2024-02-19 07:50:37 +01:00
|
|
|
uses: ./.github/workflows/core-test.yml
|
2023-07-17 10:08:20 +02:00
|
|
|
with:
|
2024-04-15 12:17:36 +03:00
|
|
|
go_version: "1.22"
|
2023-07-17 10:08:20 +02:00
|
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
2023-09-28 14:59:58 +02:00
|
|
|
|
2023-07-17 10:08:20 +02:00
|
|
|
lint:
|
|
|
|
needs: [core, console]
|
|
|
|
uses: ./.github/workflows/lint.yml
|
|
|
|
with:
|
2024-04-15 12:17:36 +03:00
|
|
|
go_version: "1.22"
|
2023-09-28 14:59:58 +02:00
|
|
|
node_version: "18"
|
|
|
|
buf_version: "latest"
|
2023-11-21 14:11:38 +02:00
|
|
|
go_lint_version: "v1.55.2"
|
2023-07-17 10:08:20 +02:00
|
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
|
|
|
|
|
|
|
container:
|
|
|
|
needs: [compile]
|
|
|
|
uses: ./.github/workflows/container.yml
|
2023-08-10 14:21:01 +02:00
|
|
|
secrets: inherit
|
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
2023-07-17 10:08:20 +02:00
|
|
|
with:
|
2023-09-28 14:59:58 +02:00
|
|
|
build_image_name: "ghcr.io/zitadel/zitadel-build"
|
2023-07-17 10:08:20 +02:00
|
|
|
|
|
|
|
e2e:
|
|
|
|
uses: ./.github/workflows/e2e.yml
|
2023-08-10 14:21:01 +02:00
|
|
|
needs: [compile]
|
2023-07-17 10:08:20 +02:00
|
|
|
|
|
|
|
release:
|
|
|
|
uses: ./.github/workflows/release.yml
|
2023-08-10 14:21:01 +02:00
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
contents: write
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
2023-09-28 14:59:58 +02:00
|
|
|
needs:
|
2024-02-19 07:50:37 +01:00
|
|
|
[version, core-test, lint, container, e2e]
|
2024-01-02 15:03:23 +01:00
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
2023-07-17 10:08:20 +02:00
|
|
|
secrets:
|
|
|
|
GCR_JSON_KEY_BASE64: ${{ secrets.GCR_JSON_KEY_BASE64 }}
|
2024-03-25 09:29:54 +01:00
|
|
|
APP_ID: ${{ secrets.APP_ID }}
|
|
|
|
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
|
2023-07-17 10:08:20 +02:00
|
|
|
with:
|
2023-08-10 14:21:01 +02:00
|
|
|
build_image_name: ${{ needs.container.outputs.build_image }}
|
2024-04-10 13:56:05 +02:00
|
|
|
semantic_version: "23.0.7"
|
2023-09-28 14:59:58 +02:00
|
|
|
image_name: "ghcr.io/zitadel/zitadel"
|
2023-07-17 10:08:20 +02:00
|
|
|
google_image_name: "europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel"
|