From 1706642fc884792b2da6f47080df420d5aeeedfd Mon Sep 17 00:00:00 2001 From: Christopher Guindon Date: Mon, 3 Oct 2022 11:29:08 -0400 Subject: [PATCH] Migrate EF websites to our new preview framework Related to https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1978 --- Jenkinsfile | 7 +++++-- k8s/deployments.jsonnet | 5 ----- netlify.toml | 33 --------------------------------- package.json | 2 -- 4 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 k8s/deployments.jsonnet delete mode 100644 netlify.toml diff --git a/Jenkinsfile b/Jenkinsfile index 869706d4..80e56505 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,6 @@ -@Library('common-shared') _ +@Library('releng-pipeline') _ -hugoWebsitePipeline appname: 'events.eclipse.org' +hugo ( + appName: 'events.eclipse.org', + productionDomain: 'events.eclipse.org', +) diff --git a/k8s/deployments.jsonnet b/k8s/deployments.jsonnet deleted file mode 100644 index a29674a8..00000000 --- a/k8s/deployments.jsonnet +++ /dev/null @@ -1,5 +0,0 @@ -local deployment = import "../../releng/hugo-websites/kube-deployment.jsonnet"; - -deployment.newProductionDeploymentWithStaging( - "events.eclipse.org", "events-staging.eclipse.org" -) \ No newline at end of file diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index b06fd692..00000000 --- a/netlify.toml +++ /dev/null @@ -1,33 +0,0 @@ -[build] -publish = "public" -command = "npm run build_netlify && hugo --gc --minify -b https://eclipsefdn-events.netlify.com" - -[build.environment] - NODE_VERSION = "12.18.3" - -[context.production.environment] -HUGO_VERSION = "0.76.5" -HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" - -[context.split1] -command = "npm run build_netlify && hugo --gc --minify --enableGitInfo" - -[context.split1.environment] -HUGO_VERSION = "0.76.5" -HUGO_ENV = "production" - -[context.deploy-preview] -command = "npm run build_netlify && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" - -[context.deploy-preview.environment] -HUGO_VERSION = "0.76.5" - -[context.branch-deploy] -command = "npm run build_netlify && hugo --gc --minify -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.76.5" - -[context.next.environment] -HUGO_ENABLEGITINFO = "true" diff --git a/package.json b/package.json index e26bc5ae..3a019056 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,6 @@ "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", "production": "NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js", "postinstall": "NODE_ENV=production npm run production", - "disallow_robots_txt": "echo \"User-agent: *\r\nDisallow: /\" > layouts/robots.txt", - "build_netlify": "NODE_ENV=production npm run disallow_robots_txt && npm run production", "test": "jest" }, "dependencies": { -- GitLab