Skip to content

Commit

Permalink
Disable dev deploy in favor of image builds (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
karelhala authored Nov 20, 2024
1 parent bb6abe7 commit 64d6446
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
image: node:18

deploy_dev:
stage: deploy
before_script:
- apt-get update
- apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
- wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
script:
- |
npm install -g @spaship/cli react-app-rewired
npm ci
NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=false JWT_FETCH_URL=$DEV_JWT_FETCH_URL CLIENT_ID=$DEV_CLIENT_ID CLIENT_SECRET=$DEV_CLIENT_SECRET INDEX_URL=$DEV_INDEX_URL SITEMAP_BASE_URL=https://developers.dev.redhat.com/api-catalog npm run sitemap
REACT_APP_ENV=development npm run build
npm run prerender
spaship deploy --env=$SPASHIP_DEV_WEB_PROPERTY --apikey=$SPASHIP_DEV_API_KEY
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
tags:
- shared
- docker
# deploy_dev:
# stage: deploy
# before_script:
# - apt-get update
# - apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
# libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4
# libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
# libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
# libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
# libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
# xdg-utils wget libnss3 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0
# libxdamage1 libxcomposite1 libxfixes3 libxrandr2 libgbm1
# - wget -O /etc/ca-certificates/mtls-ca-validators.crt https://certs.corp.redhat.com/certs/mtls-ca-validators.crt
# script:
# - |
# npm install -g @spaship/cli react-app-rewired
# npm ci
# NODE_EXTRA_CA_CERTS=/etc/ca-certificates/mtls-ca-validators.crt HYDRA_SYNC_ACTIVE=false JWT_FETCH_URL=$DEV_JWT_FETCH_URL CLIENT_ID=$DEV_CLIENT_ID CLIENT_SECRET=$DEV_CLIENT_SECRET INDEX_URL=$DEV_INDEX_URL SITEMAP_BASE_URL=https://developers.dev.redhat.com/api-catalog npm run sitemap
# REACT_APP_ENV=development npm run build
# npm run prerender
# spaship deploy --env=$SPASHIP_DEV_WEB_PROPERTY --apikey=$SPASHIP_DEV_API_KEY
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# when: always
# tags:
# - shared
# - docker

deploy_stage:
stage: deploy
Expand Down

0 comments on commit 64d6446

Please sign in to comment.