From e362ebf8ec8eadc6539dd166576956d4ae5ce252 Mon Sep 17 00:00:00 2001 From: swb Date: Wed, 5 Apr 2023 17:56:00 +0100 Subject: [PATCH] fix: adjust jenkinsfile to latest --- Jenkinsfile | 5 +++-- README.md | 5 ++--- static-assets/CNAME | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 static-assets/CNAME diff --git a/Jenkinsfile b/Jenkinsfile index 3b544e1..2060812 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,8 +19,8 @@ pipeline { CONTENT_SOURCE_URL = '../src' GIT_COMMITTER_NAME = 'status-im-auto' GIT_COMMITTER_EMAIL = 'auto@status.im' - /* dev page settings - * TODO: update DEV_SITE env var and uncomment it before the build */ + // TODO: update PROD_SITE & DEV_SITE env var and uncomment it before the build + // PROD_SITE = 'domain.com' // DEV_SITE = 'dev.domain.com' DEV_HOST = 'jenkins@node-01.do-ams3.sites.misc.statusim.net' SCP_OPTS = 'StrictHostKeyChecking=no' @@ -49,6 +49,7 @@ pipeline { steps { dir('builder') { sh 'yarn build' + sh "echo ${env.PROD_SITE} > out/CNAME" } } } diff --git a/README.md b/README.md index 3db8b2b..13c4614 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,5 @@ Content of `[your-site]` website ## Process 1. Clone this repo for a new website (click on use this template) -2. Adjust the Jekinfile: Update DEV_SITE environment variable in the Jenkinsfile in the clone logos site-builder content template with your domain, such as dev.domain.com and uncomment it before the build. -3. Add your domain name to CNAME file located in `/statis-assets/`CNAME` -4. Create a issue and assign to @serhanwbahar to take care of deployment +2. Adjust the `Jekinfile`: Update `PROD_SITE` and `DEV_SITE` environment variable in the Jenkinsfile in the clone logos site-builder content template with your domain, such as `domain.com` & `dev.domain.com` and uncomment it before the build. +3. Create a issue and assign to @serhanwbahar to take care of deployment diff --git a/static-assets/CNAME b/static-assets/CNAME deleted file mode 100644 index 9a854f8..0000000 --- a/static-assets/CNAME +++ /dev/null @@ -1 +0,0 @@ -.