initial
This commit is contained in:
45
.gitlab-ci.d/app-pay-cf-pages.yml
Normal file
45
.gitlab-ci.d/app-pay-cf-pages.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
build-app-pay-cf-pages:
|
||||
stage: build
|
||||
needs: []
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:v1.15.0-debug
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- >-
|
||||
/kaniko/executor
|
||||
--context "${CI_PROJECT_DIR}"
|
||||
--dockerfile "${CI_PROJECT_DIR}/Dockerfile.pay"
|
||||
--target builder-cloudflare
|
||||
--skip-unused-stages=true
|
||||
--cache=true
|
||||
--cache-repo "${CI_REGISTRY_IMAGE}/frontend-app-pay/cache"
|
||||
--no-push
|
||||
|
||||
deploy-app-pay-cf-pages:
|
||||
stage: deploy
|
||||
needs: []
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "ci/pay"
|
||||
changes:
|
||||
- apps/pay/**/*
|
||||
- layers/ui/**/*
|
||||
- layers/shared/**/*
|
||||
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "ci/pay"
|
||||
when: manual
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:v1.15.0-debug
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- cp ${CLOUDFLARE_PRGMS_IO_ACCOUNT_ID} /kaniko/cloudflare-account-id
|
||||
- cp ${CLOUDFLARE_PRGMS_IO_WRANGLER_API_TOKEN} /kaniko/cloudflare-api-token
|
||||
- >-
|
||||
/kaniko/executor
|
||||
--context "${CI_PROJECT_DIR}"
|
||||
--dockerfile "${CI_PROJECT_DIR}/Dockerfile.pay"
|
||||
--target deployer-cloudflare
|
||||
--skip-unused-stages=true
|
||||
--cache=true
|
||||
--cache-repo "${CI_REGISTRY_IMAGE}/frontend-app-pay/cache"
|
||||
--no-push
|
||||
Reference in New Issue
Block a user