I have a problem with creating the appropriate . Below is my .gitlab-ci.yml
I do not know what I should write in “export API_URL”
What’s wrong with this code ?
```
image: docker:latest
stages:
- build
- deploy
build:
stage: build
image: node:8.11.3
script:
- export API_URL=" https://" (<--- I do not know what I should write here)
- npm install
- npm run build
- echo "BUILD SUCCESSFULLY"
artifacts:
paths:
- dist/
expire_in: 20 mins
environment:
name: production
only:
- master
deploy:
stage: deploy
image: python:3.5
dependencies:
- build
script:
- export AWS_ACCESS_KEY_ID=$(my key // same
variable we declared in gitlab CI settings
- export
AWS_SECRET_ACCESS_KEY=$(my key)
- export S3_BUCKET_NAME=$(my bucket name)
- export DISTRIBUTION_ID=$E2Y6FG3UPMSSQ0
- pip install awscli --upgrade --user
- export PATH=~/.local/bin:$PATH
- aws s3 sync --acl public-read --delete dist $web-web
- aws cloudfront create-invalidation --distribution-id
$E2Y6FG3UPMSSQ0 --paths '/*'
- echo "DEPLOYED SUCCESSFULLY"
environment:
name: production
only:
- master
```