forked from arcxp/deploy-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitlab-templates.yml
More file actions
39 lines (38 loc) · 1.33 KB
/
gitlab-templates.yml
File metadata and controls
39 lines (38 loc) · 1.33 KB
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
# GitLab CI reusable job template for deploying to Arc XP
#
# Usage in your .gitlab-ci.yml (with submodule):
# include:
# - local: 'deploy-action/gitlab-templates.yml'
#
# deploy_arcxp:
# extends: .deploy_to_arcxp
# variables:
# ARC_XP_ORG_ID: $ARC_XP_ORG_ID
# ARC_XP_API_KEY: $ARC_XP_API_KEY
# ARC_XP_API_HOSTNAME: $ARC_XP_API_HOSTNAME
# BUNDLE_PREFIX: "my-bundle"
#
.deploy_to_arcxp:
image: node:20
stage: deploy
script:
# Clone deploy-action if not already present (works with or without submodules)
- |
if [ ! -d "deploy-action" ]; then
git clone https://github.com/code-store-platform/deploy-action.git deploy-action
fi
- node deploy-action/dist/index.cjs
variables:
INPUT_ORG_ID: $ARC_XP_ORG_ID
INPUT_API_KEY: $ARC_XP_API_KEY
INPUT_API_HOSTNAME: $ARC_XP_API_HOSTNAME
INPUT_BUNDLE_PREFIX: $BUNDLE_PREFIX
INPUT_PAGEBUILDER_VERSION: ${PAGEBUILDER_VERSION:-latest}
INPUT_ARTIFACT: ${ARTIFACT:-dist/fusion-bundle.zip}
INPUT_RETRY_COUNT: ${RETRY_COUNT:-10}
INPUT_RETRY_DELAY: ${RETRY_DELAY:-5}
INPUT_MINIMUM_RUNNING_VERSIONS: ${MINIMUM_RUNNING_VERSIONS:-7}
INPUT_TERMINATE_RETRY_COUNT: ${TERMINATE_RETRY_COUNT:-3}
INPUT_TERMINATE_RETRY_DELAY: ${TERMINATE_RETRY_DELAY:-10}
INPUT_DEPLOY: ${DEPLOY:-true}
INPUT_PROMOTE: ${PROMOTE:-true}