1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-11-16 01:55:15 +01:00

CI tweaks

This commit is contained in:
Matthias Kretschmann 2018-04-21 11:35:04 +02:00
parent 2be0026f5d
commit 2fddf4938a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 15 additions and 17 deletions

View File

@ -1,19 +1,17 @@
image: node:latest
cache:
paths:
- node_modules/
before_script:
- npm i -g gatsby-cli
- export PATH="$PATH:/usr/local/bin/gatsby"
stages:
- testing
- build
- deploy
testing:
stage: test
build:
image: node:latest
stage: build
script:
- npm i -g gatsby-cli
- export PATH="$PATH:/usr/local/bin/gatsby"
- npm i
- npm test
- npm run build
@ -21,8 +19,10 @@ testing:
paths:
- public
# deployment:
# stage: deploy
# script: aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read
# only:
# - master
deploy:
image: garland/aws-cli-docker:latest
stage: deploy
script:
- aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read
only:
- master

View File

@ -19,9 +19,7 @@ class Head extends React.Component {
<meta name="description" content={description} />
{window.location.protocol + '//' + window.location.hostname !== `${url}` &&
<meta content="noindex,nofollow" name="robots" />
}
<meta content="noindex,nofollow" name="robots" />
</Helmet>
)
}