-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
27 lines (25 loc) · 1.12 KB
/
.gitlab-ci.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
stages:
- Image Build
include:
- remote: 'https://gitlab.com/prismacloud-public/shift-left/extension/-/raw/master/.pcs.gitlab-ci.yml'
CopyDevImages:
stage: Image Build
tags:
- qed-stg-runner
when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- mkdir -p /workspace
# Cyanweb Flask Image:
- echo "FROM ghcr.io/usepa/cyanweb-api:dev" > /workspace/Dockerfile
- /kaniko/executor --context=/workspace --destination=$CI_REGISTRY_IMAGE/cyanweb-api:$CI_COMMIT_REF_NAME
# Cyanweb Angular Image:
- echo "FROM ghcr.io/usepa/cyanweb-angular:dev" > /workspace/Dockerfile
- /kaniko/executor --context=/workspace --destination=$CI_REGISTRY_IMAGE/cyanweb-angular:$CI_COMMIT_REF_NAME
# Cyanweb MySQL Image:
- echo "FROM ghcr.io/usepa/cyanweb-db:dev" > /workspace/Dockerfile
- /kaniko/executor --context=/workspace --destination=$CI_REGISTRY_IMAGE/cyanweb-db:$CI_COMMIT_REF_NAME