Skip to content

Commit 0367ec7

Browse files
Mubarak Adeshina IMAMMubarak Imam
authored andcommitted
create main workflow.
1 parent 0f89c81 commit 0367ec7

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/main.workflow

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

.gitlab-ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ variables:
2222
services:
2323
- docker:dind
2424

25-
2625
stages:
2726
- Build Backend Image
2827
- Build Frontend Image
29-
# - Push Image to Registry
3028

3129
before_script:
3230
- docker login -u $CI_USERNAME -p $CI_ACCESS_TOKEN $CI_REGISTRY

0 commit comments

Comments
 (0)