mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 22:07:32 +00:00
ba9b807854
* get key by id and cache them * userinfo from events for v2 tokens * improve keyset caching * concurrent token and client checks * client and project in single query * logging and otel * drop owner_removed column on apps and authN tables * userinfo and project roles in go routines * get oidc user info from projections and add actions * add avatar URL * some cleanup * pull oidc work branch * remove storage from server * add config flag for experimental introspection * legacy introspection flag * drop owner_removed column on user projections * drop owner_removed column on useer_metadata * query userinfo unit test * query introspection client test * add user_grants to the userinfo query * handle PAT scopes * bring triggers back * test instance keys query * add userinfo unit tests * unit test keys * go mod tidy * solve some bugs * fix missing preferred login name * do not run triggers in go routines, they seem to deadlock * initialize the trigger handlers late with a sync.OnceValue * Revert "do not run triggers in go routines, they seem to deadlock" This reverts commit 2a03da2127b7dc74552ec25d4772282a82cc1cba. * add missing translations * chore: update go version for linting * pin oidc version * parse a global time location for query test * fix linter complains * upgrade go lint * fix more linting issues --------- Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
102 lines
2.7 KiB
YAML
102 lines
2.7 KiB
YAML
name: ZITADEL CI/CD
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
core:
|
|
uses: ./.github/workflows/core.yml
|
|
with:
|
|
node_version: "20"
|
|
buf_version: "latest"
|
|
go_version: "1.21"
|
|
|
|
console:
|
|
uses: ./.github/workflows/console.yml
|
|
with:
|
|
node_version: "20"
|
|
buf_version: "latest"
|
|
|
|
version:
|
|
uses: ./.github/workflows/version.yml
|
|
with:
|
|
semantic_version: "19.0.2"
|
|
dry_run: true
|
|
|
|
compile:
|
|
needs: [core, console, version]
|
|
uses: ./.github/workflows/compile.yml
|
|
with:
|
|
go_version: "1.21"
|
|
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 }}
|
|
|
|
core-unit-test:
|
|
needs: core
|
|
uses: ./.github/workflows/core-unit-test.yml
|
|
with:
|
|
go_version: "1.21"
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
|
|
|
core-integration-test:
|
|
needs: core
|
|
uses: ./.github/workflows/core-integration-test.yml
|
|
with:
|
|
go_version: "1.21"
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
|
|
|
lint:
|
|
needs: [core, console]
|
|
uses: ./.github/workflows/lint.yml
|
|
with:
|
|
go_version: "1.21"
|
|
node_version: "18"
|
|
buf_version: "latest"
|
|
go_lint_version: "v1.55.2"
|
|
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
|
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
|
|
|
container:
|
|
needs: [compile]
|
|
uses: ./.github/workflows/container.yml
|
|
secrets: inherit
|
|
permissions:
|
|
packages: write
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
with:
|
|
build_image_name: "ghcr.io/zitadel/zitadel-build"
|
|
|
|
e2e:
|
|
uses: ./.github/workflows/e2e.yml
|
|
needs: [compile]
|
|
|
|
release:
|
|
uses: ./.github/workflows/release.yml
|
|
permissions:
|
|
packages: write
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
needs:
|
|
[version, core-unit-test, core-integration-test, lint, container, e2e]
|
|
if: ${{ needs.version.outputs.published == 'true' && github.event_name == 'workflow_dispatch' }}
|
|
secrets:
|
|
GCR_JSON_KEY_BASE64: ${{ secrets.GCR_JSON_KEY_BASE64 }}
|
|
with:
|
|
build_image_name: ${{ needs.container.outputs.build_image }}
|
|
semantic_version: "19.0.2"
|
|
image_name: "ghcr.io/zitadel/zitadel"
|
|
google_image_name: "europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel"
|