Skip to content
Snippets Groups Projects
Verified Commit 7f7d2345 authored by Bayu Samudra's avatar Bayu Samudra
Browse files

fix: adding variable to ci

parent 747ed70e
Branches
Tags
1 merge request!48Staging
Pipeline #57301 passed with stage
in 5 minutes and 34 seconds
...@@ -3,7 +3,6 @@ stages: ...@@ -3,7 +3,6 @@ stages:
variables: variables:
DOCKER_TLS_CERTDIR: '/certs' DOCKER_TLS_CERTDIR: '/certs'
NEXT_PUBLIC_API_URL: 'https://api.ocw.bayusamudra.my.id'
deploy: deploy:
stage: deploy stage: deploy
...@@ -17,6 +16,7 @@ deploy: ...@@ -17,6 +16,7 @@ deploy:
before_script: before_script:
- echo "$DO_ACCESS_TOKEN" | docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password-stdin - echo "$DO_ACCESS_TOKEN" | docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password-stdin
script: script:
- echo "NEXT_PUBLIC_API_URL=$BACKEND_API" > .env.local
- docker build -t registry.digitalocean.com/ocw-container/ocw-frontend:latest -t registry.digitalocean.com/ocw-container/ocw-frontend:$CI_COMMIT_TAG . - docker build -t registry.digitalocean.com/ocw-container/ocw-frontend:latest -t registry.digitalocean.com/ocw-container/ocw-frontend:$CI_COMMIT_TAG .
- docker push registry.digitalocean.com/ocw-container/ocw-frontend:$CI_COMMIT_TAG - docker push registry.digitalocean.com/ocw-container/ocw-frontend:$CI_COMMIT_TAG
- docker push registry.digitalocean.com/ocw-container/ocw-frontend:latest - docker push registry.digitalocean.com/ocw-container/ocw-frontend:latest
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment