Skip to content

Commit 1c22917

Browse files
committed
Update detail notes
1 parent 798fed8 commit 1c22917

1 file changed

Lines changed: 105 additions & 48 deletions

File tree

README.md

Lines changed: 105 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -39,87 +39,144 @@ Docker Container Images Repository for DevOpsCorner.id
3939
### Push Image to ECR
4040

4141
- Create Tags Image
42+
- Example:
4243

43-
```
44-
export PATH_COMPOSE="compose"
45-
export PATH_DOCKER="$PATH_COMPOSE/docker"
44+
```
45+
# Ubuntu
4646
47-
cd ${PATH_DOCKER}/cicd-ubuntu && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
48-
cd ${PATH_DOCKER}/cicd-alpine && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
47+
docker tag devopscorner-cicd:ubuntu YOUR_AWS_ACCOUNT.dkr.ecr.ap-southeast-1.amazonaws.com/devopscorner/cicd:ubuntu
4948
50-
-- or --
49+
# Alpine
5150
52-
cd ${PATH_COMPOSE} && ./ecr-tag-ubuntu.sh
53-
cd ${PATH_COMPOSE} && ./ecr-tag-alpine.sh
51+
docker tag devopscorner-cicd:alpine YOUR_AWS_ACCOUNT.dkr.ecr.ap-southeast-1.amazonaws.com/devopscorner/cicd:alpine
52+
```
5453
55-
-- or --
54+
- With Script:
5655
57-
make ecr-tag-ubuntu
58-
make ecr-tag-alpine
59-
```
56+
```
57+
export PATH_COMPOSE="compose"
58+
export PATH_DOCKER="$PATH_COMPOSE/docker"
59+
60+
cd ${PATH_DOCKER}/cicd-ubuntu && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
61+
cd ${PATH_DOCKER}/cicd-alpine && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
62+
63+
-- or --
64+
65+
cd ${PATH_COMPOSE} && ./ecr-tag-ubuntu.sh
66+
cd ${PATH_COMPOSE} && ./ecr-tag-alpine.sh
67+
68+
-- or --
69+
70+
make ecr-tag-ubuntu
71+
make ecr-tag-alpine
72+
```
6073
6174
- Push Image with Tags
75+
- Example:
6276
63-
```
64-
export PATH_COMPOSE="compose"
65-
export PATH_DOCKER="$PATH_COMPOSE/docker"
77+
```
78+
# Ubuntu
6679
67-
cd ${PATH_DOCKER}/cicd-ubuntu && docker push $IMAGE:$TAG
68-
cd ${PATH_DOCKER}/cicd-alpine && docker push $IMAGE:$TAG
80+
docker push YOUR_AWS_ACCOUNT.dkr.ecr.ap-southeast-1.amazonaws.com/devopscorner/cicd:ubuntu
6981
70-
-- or --
82+
# Alpine
7183
72-
cd ${PATH_COMPOSE} && ./ecr-push-ubuntu.sh
73-
cd ${PATH_COMPOSE} && ./ecr-push-alpine.sh
84+
docker push YOUR_AWS_ACCOUNT.dkr.ecr.ap-southeast-1.amazonaws.com/devopscorner/cicd:alpine
85+
```
7486
75-
-- or --
87+
- With Script:
7688
77-
make ecr-push-ubuntu
78-
make ecr-push-alpine
79-
```
89+
```
90+
export PATH_COMPOSE="compose"
91+
export PATH_DOCKER="$PATH_COMPOSE/docker"
92+
93+
cd ${PATH_DOCKER}/cicd-ubuntu && docker push $IMAGE:$TAG
94+
cd ${PATH_DOCKER}/cicd-alpine && docker push $IMAGE:$TAG
95+
96+
-- or --
97+
98+
cd ${PATH_COMPOSE} && ./ecr-push-ubuntu.sh
99+
cd ${PATH_COMPOSE} && ./ecr-push-alpine.sh
100+
101+
-- or --
102+
103+
make ecr-push-ubuntu
104+
make ecr-push-alpine
105+
```
80106
81107
### Push Image to DockerHub
82108
83109
- Login to your DockerHub Account
84110
- Create Tags Image
111+
- Example:
85112
86-
```
87-
export PATH_COMPOSE="compose"
88-
export PATH_DOCKER="$PATH_COMPOSE/docker"
113+
```
114+
# Ubuntu (Latest)
89115
90-
cd ${PATH_DOCKER}/cicd-ubuntu && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
91-
cd ${PATH_DOCKER}/cicd-alpine && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
116+
docker tag devopscorner-cicd:ubuntu docker tag devopscorner-cicd:latest
92117
93-
-- or --
118+
# Alpine (Latest)
94119
95-
cd ${PATH_COMPOSE} && ./dockerhub-tag-ubuntu.sh
96-
cd ${PATH_COMPOSE} && ./dockerhub-tag-alpine.sh
120+
docker tag devopscorner-cicd:alpine docker tag devopscorner-cicd:latest
121+
```
97122
98-
-- or --
123+
- With Script:
99124
100-
make dockerhub-tag-ubuntu
101-
make dockerhub-tag-alpine
102-
```
125+
```
126+
export PATH_COMPOSE="compose"
127+
export PATH_DOCKER="$PATH_COMPOSE/docker"
128+
129+
cd ${PATH_DOCKER}/cicd-ubuntu && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
130+
cd ${PATH_DOCKER}/cicd-alpine && docker tag $BASE_IMAGE:$TAG $IMAGE:$TAG
131+
132+
-- or --
133+
134+
cd ${PATH_COMPOSE} && ./dockerhub-tag-ubuntu.sh
135+
cd ${PATH_COMPOSE} && ./dockerhub-tag-alpine.sh
136+
137+
-- or --
138+
139+
make dockerhub-tag-ubuntu
140+
make dockerhub-tag-alpine
141+
```
103142
104143
- Push Image with Tags
105144
106-
```
107-
export PATH_COMPOSE="compose"
108-
export PATH_DOCKER="$PATH_COMPOSE/docker"
145+
- Example:
109146
110-
cd ${PATH_DOCKER}/cicd-ubuntu && docker push $IMAGE:$TAG
111-
cd ${PATH_DOCKER}/cicd-alpine && docker push $IMAGE:$TAG
147+
```
148+
# Ubuntu
112149
113-
-- or --
150+
docker push devopscorner-cicd:ubuntu
114151
115-
cd ${PATH_COMPOSE} && ./dockerhub-push-ubuntu.sh
116-
cd ${PATH_COMPOSE} && ./dockerhub-push-alpine.sh
152+
# Alpine
117153
118-
-- or --
154+
docker push devopscorner-cicd:alpine
119155
120-
make dockerhub-push-ubuntu
121-
make dockerhub-push-alpine
122-
```
156+
# Latest (Ubuntu / Alpine)
157+
158+
docker push devopscorner-cicd:latest
159+
```
160+
161+
- With Script:
162+
163+
```
164+
export PATH_COMPOSE="compose"
165+
export PATH_DOCKER="$PATH_COMPOSE/docker"
166+
167+
cd ${PATH_DOCKER}/cicd-ubuntu && docker push $IMAGE:$TAG
168+
cd ${PATH_DOCKER}/cicd-alpine && docker push $IMAGE:$TAG
169+
170+
-- or --
171+
172+
cd ${PATH_COMPOSE} && ./dockerhub-push-ubuntu.sh
173+
cd ${PATH_COMPOSE} && ./dockerhub-push-alpine.sh
174+
175+
-- or --
176+
177+
make dockerhub-push-ubuntu
178+
make dockerhub-push-alpine
179+
```
123180
124181
## Copyright
125182

0 commit comments

Comments
 (0)