mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-11-16 01:55:15 +01:00
CI tweaks
This commit is contained in:
parent
2be0026f5d
commit
2fddf4938a
@ -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
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user