From e966e2fb6b59cc75339c783ca64d787d8bcb2737 Mon Sep 17 00:00:00 2001
From: bayusamudra5502 <bayusamudra.55.02.com@gmail.com>
Date: Sun, 5 Feb 2023 11:55:48 +0700
Subject: [PATCH] fix: change to docker command due to faster pipline

---
 .gitlab-ci.yml | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fa9f3ee..0fbc061 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
-- 
GitLab