Skip to content
Snippets Groups Projects

fix: fixing cd not running

Closed Bayu Samudra requested to merge staging into main
Compare and
1 file
+ 1
4
Preferences
Compare changes
+ 1
4
@@ -25,10 +25,7 @@ deploy:
@@ -25,10 +25,7 @@ deploy:
tags:
tags:
- cicd
- cicd
only:
only:
refs:
- tags
- tags
variables:
- ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "staging")
script:
script:
- docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password $DO_ACCESS_TOKEN
- docker login registry.digitalocean.com --username $DO_ACCESS_TOKEN --password $DO_ACCESS_TOKEN
- 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 .