@@ -28,89 +28,89 @@ image: node:18
28
28
# - shared
29
29
# - docker
30
30
31
- deploy_stage :
32
- stage : deploy
33
- before_script :
34
- - apt-get update
35
- - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
36
- libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
37
- libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
38
- libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
39
- libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
40
- libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
41
- xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
42
- libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
43
- - wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
44
- script :
45
- - |
46
- npm install -g @spaship/cli react-app-rewired
47
- npm ci
48
- NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$STAGE_JWT_FETCH_URL CLIENT_ID=$STAGE_CLIENT_ID CLIENT_SECRET=$STAGE_CLIENT_SECRET INDEX_URL=$STAGE_INDEX_URL SITEMAP_BASE_URL=https://developers.stage.redhat.com/api-catalog npm run sitemap
49
- REACT_APP_ENV=staging npm run build
50
- npm run prerender
51
- spaship deploy --env=$SPASHIP_STAGE_WEB_PROPERTY --apikey=$SPASHIP_STAGE_API_KEY
52
- rules :
53
- - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
54
- when : always
55
- allow_failure : true
56
- tags :
57
- - shared
58
- - docker
31
+ # deploy_stage:
32
+ # stage: deploy
33
+ # before_script:
34
+ # - apt-get update
35
+ # - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
36
+ # libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
37
+ # libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
38
+ # libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
39
+ # libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
40
+ # libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
41
+ # xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
42
+ # libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
43
+ # - wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
44
+ # script:
45
+ # - |
46
+ # npm install -g @spaship/cli react-app-rewired
47
+ # npm ci
48
+ # NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$STAGE_JWT_FETCH_URL CLIENT_ID=$STAGE_CLIENT_ID CLIENT_SECRET=$STAGE_CLIENT_SECRET INDEX_URL=$STAGE_INDEX_URL SITEMAP_BASE_URL=https://developers.stage.redhat.com/api-catalog npm run sitemap
49
+ # REACT_APP_ENV=staging npm run build
50
+ # npm run prerender
51
+ # spaship deploy --env=$SPASHIP_STAGE_WEB_PROPERTY --apikey=$SPASHIP_STAGE_API_KEY
52
+ # rules:
53
+ # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
54
+ # when: always
55
+ # allow_failure: true
56
+ # tags:
57
+ # - shared
58
+ # - docker
59
59
60
- deploy_qa :
61
- stage : deploy
62
- before_script :
63
- - apt-get update
64
- - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
65
- libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
66
- libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
67
- libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
68
- libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
69
- libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
70
- xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
71
- libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
72
- - wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
73
- script :
74
- - |
75
- npm install -g @spaship/cli react-app-rewired
76
- npm ci
77
- NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$QA_JWT_FETCH_URL CLIENT_ID=$QA_CLIENT_ID CLIENT_SECRET=$QA_CLIENT_SECRET INDEX_URL=$QA_INDEX_URL SITEMAP_BASE_URL=https://developers.qa.redhat.com/api-catalog npm run sitemap
78
- REACT_APP_ENV=qa npm run build
79
- npm run prerender
80
- spaship deploy --env=$SPASHIP_QA_WEB_PROPERTY --apikey=$SPASHIP_QA_API_KEY
81
- rules :
82
- - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
83
- when : always
84
- allow_failure : true
85
- tags :
86
- - shared
87
- - docker
60
+ # deploy_qa:
61
+ # stage: deploy
62
+ # before_script:
63
+ # - apt-get update
64
+ # - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
65
+ # libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
66
+ # libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
67
+ # libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
68
+ # libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
69
+ # libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
70
+ # xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
71
+ # libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
72
+ # - wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
73
+ # script:
74
+ # - |
75
+ # npm install -g @spaship/cli react-app-rewired
76
+ # npm ci
77
+ # NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$QA_JWT_FETCH_URL CLIENT_ID=$QA_CLIENT_ID CLIENT_SECRET=$QA_CLIENT_SECRET INDEX_URL=$QA_INDEX_URL SITEMAP_BASE_URL=https://developers.qa.redhat.com/api-catalog npm run sitemap
78
+ # REACT_APP_ENV=qa npm run build
79
+ # npm run prerender
80
+ # spaship deploy --env=$SPASHIP_QA_WEB_PROPERTY --apikey=$SPASHIP_QA_API_KEY
81
+ # rules:
82
+ # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
83
+ # when: always
84
+ # allow_failure: true
85
+ # tags:
86
+ # - shared
87
+ # - docker
88
88
89
- deploy_prod :
90
- stage : deploy
91
- before_script :
92
- - apt-get update
93
- - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
94
- libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
95
- libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
96
- libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
97
- libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
98
- libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
99
- xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
100
- libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
101
- script :
102
- - |
103
- echo "Deploying $CI_COMMIT_TAG to Production"
104
- npm install -g @spaship/cli react-app-rewired
105
- npm ci
106
- HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$PROD_JWT_FETCH_URL CLIENT_ID=$PROD_CLIENT_ID CLIENT_SECRET=$PROD_CLIENT_SECRET INDEX_URL=$PROD_INDEX_URL SITEMAP_BASE_URL=https://developers.redhat.com/api-catalog npm run sitemap
107
- REACT_APP_ENV=production REACT_APP_PENDO_ENABLED=true REACT_APP_PENDO_API_KEY=4c10d138-7686-497b-5938-3a40b35ac4aa npm run build
108
- npm run prerender
109
- spaship deploy --env=$SPASHIP_PROD_WEB_PROPERTY --apikey=$SPASHIP_PROD_API_KEY
110
- rules :
111
- - if : $CI_COMMIT_TAG =~ /^v\d+/
112
- when : always
113
- allow_failure : true
114
- tags :
115
- - shared
116
- - docker
89
+ # deploy_prod:
90
+ # stage: deploy
91
+ # before_script:
92
+ # - apt-get update
93
+ # - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
94
+ # libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
95
+ # libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
96
+ # libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
97
+ # libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
98
+ # libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
99
+ # xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
100
+ # libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
101
+ # script:
102
+ # - |
103
+ # echo "Deploying $CI_COMMIT_TAG to Production"
104
+ # npm install -g @spaship/cli react-app-rewired
105
+ # npm ci
106
+ # HYDRA_SYNC_ACTIVE=true JWT_FETCH_URL=$PROD_JWT_FETCH_URL CLIENT_ID=$PROD_CLIENT_ID CLIENT_SECRET=$PROD_CLIENT_SECRET INDEX_URL=$PROD_INDEX_URL SITEMAP_BASE_URL=https://developers.redhat.com/api-catalog npm run sitemap
107
+ # REACT_APP_ENV=production REACT_APP_PENDO_ENABLED=true REACT_APP_PENDO_API_KEY=4c10d138-7686-497b-5938-3a40b35ac4aa npm run build
108
+ # npm run prerender
109
+ # spaship deploy --env=$SPASHIP_PROD_WEB_PROPERTY --apikey=$SPASHIP_PROD_API_KEY
110
+ # rules:
111
+ # - if: $CI_COMMIT_TAG =~ /^v\d+/
112
+ # when: always
113
+ # allow_failure: true
114
+ # tags:
115
+ # - shared
116
+ # - docker
0 commit comments