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