forked from eclipse-xpanse/xpanse-iam
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.42 KB
/
build-zitadel-dev-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build Zitadel Dev Images
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.6.0
- name: start containers using docker compose
run: |
mkdir ${{ runner.temp }}/machinekey &&
VOLUME_POINT=${{ runner.temp }}/machinekey docker compose up -d
working-directory: zitadel/local/compose
- name: Wait for API Response
uses: mydea/action-wait-for-api@v1
continue-on-error: true
with:
url: "http://localhost:8088/debug/healthz"
expected-status: "200" # You can specify other 2xx codes as needed
timeout: "60" # Maximum wait time in seconds
interval: "10"
- name: copy admin service account key
run: |
docker logs compose-zitadel-1
- name: copy admin service account key
run: |
cp ${{ runner.temp }}/machinekey .
working-directory: zitadel/terraform
- name: configure Zitadel
run: |
terraform init &&
terraform apply -var-file=environments/local.tfvars -auto-approve
working-directory: zitadel/terraform