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

fix: change to docker command due to faster pipline

parent 84146b07
1 merge request!3Staging
Pipeline #51297 passed with stages
in 5 minutes and 54 seconds
...@@ -4,7 +4,6 @@ stages: ...@@ -4,7 +4,6 @@ stages:
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
DO_ACCESS_TOKEN: $DO_ACCESS_TOKEN
test: test:
stage: testing stage: testing
...@@ -28,13 +27,7 @@ deploy: ...@@ -28,13 +27,7 @@ deploy:
only: only:
- tags - tags
before_script: before_script:
- apk add --no-cache wget - echo $DO_ACCESS_TOKEN | docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password-stdin
- apk add --no-cache tar
- wget https://github.com/digitalocean/doctl/releases/download/v1.92.0/doctl-1.92.0-linux-amd64.tar.gz
- tar xf doctl-1.92.0-linux-amd64.tar.gz
- mv doctl /usr/local/bin
- doctl auth init -t $DO_ACCESS_TOKEN
- doctl registry login
script: script:
- docker build -t registry.digitalocean.com/ocw-container/ocw-backend:latest -t registry.digitalocean.com/ocw-container/ocw-backend:$CI_COMMIT_TAG . - docker build -t registry.digitalocean.com/ocw-container/ocw-backend:latest -t registry.digitalocean.com/ocw-container/ocw-backend:$CI_COMMIT_TAG .
- docker push registry.digitalocean.com/ocw-container/ocw-backend:$CI_COMMIT_TAG - docker push registry.digitalocean.com/ocw-container/ocw-backend:$CI_COMMIT_TAG
......
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