Skip to content

Commit

Permalink
Update drone
Browse files Browse the repository at this point in the history
  • Loading branch information
moekify committed Feb 14, 2022
1 parent 23ae6fa commit a194a22
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 76 deletions.
29 changes: 13 additions & 16 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build-and-deploy

steps:
- name: install
image: node:12
image: node:16
pull: always
environment:
CYPRESS_CACHE_FOLDER: .cypress
Expand All @@ -13,7 +13,7 @@ steps:
- npm ci

- name: test
image: cypress/browsers:node12.18.0-chrome83-ff77
image: cypress/included:3.2.0
pull: always
environment:
CYPRESS_CACHE_FOLDER: .cypress
Expand All @@ -25,16 +25,16 @@ steps:
- npm run test

- name: build staging
image: node:12
image: node:16
pull: always
environment:
VITE_DIRECTUS_URL:
from_secret: directus_url_new
DIRECTUS_TOKEN:
from_secret: directus_token_new
NODE_ENV: staging
ADAPTER: staging
commands:
- npm run build
- npm run build:staging
when:
branch:
exclude:
Expand All @@ -52,9 +52,7 @@ steps:
port: 1312
target: /srv/lf/website/staging
sources:
- ./__sapper__/build
- ./static
- ./src
- ./build
- ./node_modules
- ./Dockerfile
- ./docker-compose.staging.yml
Expand All @@ -66,16 +64,15 @@ steps:
- master

- name: build production
image: node:12
image: node:16
pull: always
environment:
VITE_DIRECTUS_URL:
from_secret: directus_url_new
DIRECTUS_TOKEN:
from_secret: directus_token_new
NODE_ENV: production
commands:
- npm run export:production
- npm run build
when:
branch:
- master
Expand All @@ -92,7 +89,7 @@ steps:
port: 1312
target: /srv/lf/website/prod
sources:
- ./__sapper__/export
- ./build
- ./docker-compose.prod.yml
commands:
- docker-compose -f docker-compose.prod.yml up -d --build
Expand All @@ -112,7 +109,7 @@ name: directus-build-and-deploy

steps:
- name: install
image: node:12
image: node:16
pull: always
environment:
CYPRESS_CACHE_FOLDER: .cypress
Expand All @@ -122,7 +119,7 @@ steps:
- npm ci

- name: test
image: cypress/browsers:node12.18.0-chrome83-ff77
image: cypress/included:3.2.0
pull: always
environment:
CYPRESS_CACHE_FOLDER: .cypress
Expand All @@ -134,7 +131,7 @@ steps:
- npm run test

- name: build production
image: node:12
image: node:16
pull: always
environment:
VITE_DIRECTUS_URL:
Expand All @@ -157,7 +154,7 @@ steps:
port: 1312
target: /srv/lf/website/prod
sources:
- ./__sapper__/export
- ./build
- ./docker-compose.prod.yml
commands:
- docker-compose -f docker-compose.prod.yml up -d --build
Expand Down
56 changes: 1 addition & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"dependencies": {
"@directus/sdk": "^9.4.3",
"cross-env": "^7.0.3",
"lozad": "^1.16.0",
"node-fetch": "^2.6.1"
"lozad": "^1.16.0"
},
"devDependencies": {
"@beyonk/gdpr-cookie-consent-banner": "^9.0.3",
Expand Down
5 changes: 2 additions & 3 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Sitemap: https://www.love-foundation.org/sitemap.xml
User-agent:*
Disallow:
User-agent: *
Allow: /

0 comments on commit a194a22

Please # to comment.