1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-09-28 03:58:47 +02: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: cache:
paths: paths:
- node_modules/ - node_modules/
before_script: stages:
- build
- deploy
build:
image: node:latest
stage: build
script:
- npm i -g gatsby-cli - npm i -g gatsby-cli
- export PATH="$PATH:/usr/local/bin/gatsby" - export PATH="$PATH:/usr/local/bin/gatsby"
stages:
- testing
testing:
stage: test
script:
- npm i - npm i
- npm test - npm test
- npm run build - npm run build
@ -21,8 +19,10 @@ testing:
paths: paths:
- public - public
# deployment: deploy:
# stage: deploy image: garland/aws-cli-docker:latest
# script: aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read stage: deploy
# only: script:
# - master - 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} /> <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> </Helmet>
) )
} }