mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:17:33 +00:00
pipeline
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -108,6 +108,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
login_build_image: ${{ needs.login-container.outputs.login_build_image }}
|
login_build_image: ${{ needs.login-container.outputs.login_build_image }}
|
||||||
|
|
||||||
|
login-acceptance-test:
|
||||||
|
uses: ./.github/workflows/login-acceptance-test.yml
|
||||||
|
needs: [login-container, compile]
|
||||||
|
with:
|
||||||
|
login_build_image: ${{ needs.login-container.outputs.login_build_image }}
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
uses: ./.github/workflows/e2e.yml
|
uses: ./.github/workflows/e2e.yml
|
||||||
needs: [compile]
|
needs: [compile]
|
||||||
|
28
.github/workflows/login-acceptance-test.yml
vendored
28
.github/workflows/login-acceptance-test.yml
vendored
@@ -6,9 +6,6 @@ on:
|
|||||||
login_build_image:
|
login_build_image:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
zitadel_build_image:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
@@ -20,26 +17,30 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install Dev Container CLI
|
|
||||||
run: npm install -g @devcontainers/cli@0.80.0
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Pull Login Build Image
|
- uses: actions/download-artifact@v4
|
||||||
run: docker compose --file .devcontainer/login-acceptance/docker-compose.yaml pull
|
with:
|
||||||
env:
|
path: .artifacts
|
||||||
LOGIN_TAG: ${{ inputs.login_build_image }}
|
name: zitadel-linux-amd64
|
||||||
ZITADEL_TAG: ${{ inputs.zitadel_build_image }}
|
- name: Unpack executable
|
||||||
- name: Run Integration Tests against the Login and a Mocked Zitadel API
|
run: |
|
||||||
|
tar -xvf .artifacts/zitadel-linux-amd64.tar.gz
|
||||||
|
mv zitadel-linux-amd64/zitadel ./zitadel
|
||||||
|
- name: Build Zitadel Image
|
||||||
|
run: make docker_image
|
||||||
|
- name: Install Dev Container CLI
|
||||||
|
run: npm install -g @devcontainers/cli@0.80.0
|
||||||
|
- name: Run Integration Tests against the Login and the Zitadel API
|
||||||
run: npm run devcontainer:acceptance:login
|
run: npm run devcontainer:acceptance:login
|
||||||
env:
|
env:
|
||||||
LOGIN_TAG: ${{ inputs.login_build_image }}
|
LOGIN_TAG: ${{ inputs.login_build_image }}
|
||||||
ZITADEL_TAG: ${{ inputs.zitadel_build_image }}
|
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
- name: Fix Failures
|
- name: Fix Failures
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
echo "Reproduce this check locally:"
|
echo "Reproduce this check locally:"
|
||||||
echo "LOGIN_TAG=${{ inputs.login_build_image }} ZITADEL_TAG=${{ inputs.login_build_image }} npm run devcontainer:acceptance:login"
|
echo "LOGIN_TAG=${{ inputs.login_build_image }} npm run devcontainer:acceptance:login"
|
||||||
echo "To fix the failures, open the dev container called \"Login Acceptance\"."
|
echo "To fix the failures, open the dev container called \"Login Acceptance\"."
|
||||||
echo "You will have the same environment as the pipeline check as well as some guidance on how to fix the errors."
|
echo "You will have the same environment as the pipeline check as well as some guidance on how to fix the errors."
|
||||||
- name: Show Compose Status
|
- name: Show Compose Status
|
||||||
@@ -50,7 +51,6 @@ jobs:
|
|||||||
run: COMPOSE_BAKE=1 docker compose --file .devcontainer/login-acceptance/docker-compose.yaml config login-acceptance
|
run: COMPOSE_BAKE=1 docker compose --file .devcontainer/login-acceptance/docker-compose.yaml config login-acceptance
|
||||||
env:
|
env:
|
||||||
LOGIN_TAG: ${{ inputs.login_build_image }}
|
LOGIN_TAG: ${{ inputs.login_build_image }}
|
||||||
ZITADEL_TAG: ${{ inputs.zitadel_build_image }}
|
|
||||||
- name: Show Container Logs
|
- name: Show Container Logs
|
||||||
if: failure()
|
if: failure()
|
||||||
run: docker compose --file .devcontainer/login-acceptance/docker-compose.yaml logs --timestamps --no-color --tail 100 login-acceptance
|
run: docker compose --file .devcontainer/login-acceptance/docker-compose.yaml logs --timestamps --no-color --tail 100 login-acceptance
|
||||||
|
Reference in New Issue
Block a user