@@ -3,7 +3,7 @@ variables:
33
44.test_template :
55 stage : test
6- image : ghcr.io/astral-sh/uv:python3.14-bookworm -slim
6+ image : ghcr.io/astral-sh/uv:python3.14-trixie -slim
77 cache :
88 key :
99 files :
@@ -17,7 +17,6 @@ variables:
1717
1818stages :
1919 - test
20- - release_flare_infra
2120
2221test_ruff :
2322 extends : .test_template
@@ -48,66 +47,4 @@ test_django:
4847 junit : junit.xml
4948 coverage_report :
5049 coverage_format : cobertura
51- path : coverage.xml
52-
53- .release_flare_infra :
54- stage : release_flare_infra
55- rules :
56- - if : " $CI_COMMIT_TAG"
57-
58- # todo: Remove once GitHub repo is public and use images from ghcr
59- release_flare_infra:auth :
60- extends : .release_flare_infra
61- image : registry.gitlab.com/flarenetwork/infra/pipeliner:latest
62- id_tokens :
63- OIDC_JOB_TOKEN :
64- aud : https://gitlab.com
65- variables :
66- GCP_PROJECT : " flare-network-shared"
67- GCP_PROJECT_NUMBER : " 940168819002"
68- before_script :
69- - >
70- WORKLOAD_IDENTITY_POOL=$([ "$CI_COMMIT_REF_PROTECTED" == "true" ] &&
71- echo "cr-oidc-gitlab-protected-pool" ||
72- echo "cr-oidc-gitlab-pool")
73- - >
74- WORKLOAD_IDENTITY_POOL_PROVIDER=$([ "$CI_COMMIT_REF_PROTECTED" == "true" ] &&
75- echo "oidc-gitlab-protected" ||
76- echo "oidc-gitlab-pool-provider")
77- - >
78- SERVICE_ACCOUNT_EMAIL=$([ "$CI_COMMIT_REF_PROTECTED" == "true" ] &&
79- echo "cr-prtctd-oidc-cntnr-img-bldr@flare-network-shared.iam.gserviceaccount.com" ||
80- echo "cr-oidc-cntnr-img-bldr@flare-network-shared.iam.gserviceaccount.com")
81- - . pipeliner gcloud-setup
82- script :
83- - echo "GOOGLE_OAUTH_ACCESS_TOKEN=$GOOGLE_OAUTH_ACCESS_TOKEN" > auth.env
84- artifacts :
85- reports :
86- dotenv :
87- - auth.env
88-
89- release_flare_infra :
90- extends : .release_flare_infra
91- image :
92- name : gcr.io/kaniko-project/executor:v1.18.0-debug
93- entrypoint : [""]
94- needs :
95- - job : release_flare_infra:auth
96- artifacts : true
97- before_script :
98- - mkdir -p /kaniko/.docker
99- - auth_encoded=$(echo -n "oauth2accesstoken:$GOOGLE_OAUTH_ACCESS_TOKEN" | base64 | tr -d "\n")
100- - echo "{\"auths\":{\"europe-west1-docker.pkg.dev\":{\"auth\":\"$auth_encoded\",\"email\":\"not@val.id\"}}}" > /kaniko/.docker/config.json
101- script :
102- - >
103- args="--context ${CI_PROJECT_DIR}/.
104- --dockerfile ${CI_PROJECT_DIR}/Dockerfile
105- --cache=true
106- --destination europe-west1-docker.pkg.dev/flare-network-staging/containers/data-availability:latest
107- --destination europe-west1-docker.pkg.dev/flare-network-staging/containers/data-availability:${CI_COMMIT_TAG}"
108- - >-
109- if [[ $CI_COMMIT_REF_PROTECTED == "true" ]]; then
110- args="$args --destination europe-west1-docker.pkg.dev/flare-network-production/containers/data-availability:latest"
111- args="$args --destination europe-west1-docker.pkg.dev/flare-network-production/containers/data-availability:${CI_COMMIT_TAG}"
112- fi
113- - /kaniko/executor $args
50+ path : coverage.xml
0 commit comments