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
Branches
Tags v1.0.7
1 merge request!3Staging
Pipeline #51297 passed with stages
in 5 minutes and 54 seconds
......@@ -4,7 +4,6 @@ stages:
variables:
DOCKER_TLS_CERTDIR: "/certs"
DO_ACCESS_TOKEN: $DO_ACCESS_TOKEN
test:
stage: testing
......@@ -28,13 +27,7 @@ deploy:
only:
- tags
before_script:
- apk add --no-cache wget
- 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
- echo $DO_ACCESS_TOKEN | docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password-stdin
script:
- 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
......
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