Skip to content
Snippets Groups Projects
Verified Commit 33a78aa7 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

try different build method

parent 4df0b85c
No related branches found
No related tags found
1 merge request!1Resolve "Add (docker) build pipeline"
Pipeline #8613 passed with stages
in 2 minutes and 57 seconds
...@@ -12,7 +12,7 @@ build-project: ...@@ -12,7 +12,7 @@ build-project:
before_script: [] before_script: []
script: script:
- echo "Building app" - echo "Building app"
- yarn - yarn install
# - echo "REACT_APP_API_URL=https://oas-api.initdevelopment.com/api/v1" > .env # - echo "REACT_APP_API_URL=https://oas-api.initdevelopment.com/api/v1" > .env
# - echo "EXTEND_ESLINT=true" >> .env # - echo "EXTEND_ESLINT=true" >> .env
- yarn build - yarn build
...@@ -36,5 +36,5 @@ build-container: ...@@ -36,5 +36,5 @@ build-container:
- cp deployment/nginx.conf web-build - cp deployment/nginx.conf web-build
- cd web-build - cd web-build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - 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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment