try different build method
This commit is contained in:
parent
4df0b85cf1
commit
33a78aa793
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ build-project:
|
|||
before_script: []
|
||||
script:
|
||||
- echo "Building app"
|
||||
- yarn
|
||||
- yarn install
|
||||
# - echo "REACT_APP_API_URL=https://oas-api.initdevelopment.com/api/v1" > .env
|
||||
# - echo "EXTEND_ESLINT=true" >> .env
|
||||
- yarn build
|
||||
|
@ -36,5 +36,5 @@ build-container:
|
|||
- cp deployment/nginx.conf web-build
|
||||
- cd web-build
|
||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor --cache=true --context ${CI_PROJECT_DIR}/ --dockerfile ${CI_PROJECT_DIR}/web-build/Dockerfile --destination ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_NAME}
|
||||
- /kaniko/executor --cache=true --context ${CI_PROJECT_DIR}/web-build --destination ${CI_REGISTRY_IMAGE}/${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_NAME}
|
||||
|
||||
|
|
Loading…
Reference in a new issue