File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ workflow "Build Docker Images" {
2+ on = " push"
3+ resolves = [" GitHub Action for Docker" ]
4+ }
5+
6+ action "Docker Registry" {
7+ uses = " actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108"
8+ secrets = [" DOCKER_REGISTRY_URL" , " DOCKER_USERNAME" , " DOCKER_PASSWORD" ]
9+ }
10+
11+ action "GitHub Action for Docker" {
12+ uses = " actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
13+ needs = [" Docker Registry" ]
14+ secrets = [" DOCKER_REGISTRY_URL" , " DOCKER_USERNAME" ]
15+ env = {
16+ BACKEND_IMAGE = " nestpoc-api"
17+ }
18+ args = " build -t $DOCKER_REGISTRY_URL/$DOCKER_USERNAME/$BACKEND_IMAGE:latest ./nestpoc-api"
19+ }
Original file line number Diff line number Diff line change @@ -22,11 +22,9 @@ variables:
2222services :
2323 - docker:dind
2424
25-
2625stages :
2726 - Build Backend Image
2827 - Build Frontend Image
29- # - Push Image to Registry
3028
3129before_script :
3230 - docker login -u $CI_USERNAME -p $CI_ACCESS_TOKEN $CI_REGISTRY
You can’t perform that action at this time.
0 commit comments