Skip to content

Commit ae9cccb

Browse files
GitLab-ECR
1 parent a2ba520 commit ae9cccb

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Gitlab-ECR.docx

30.9 KB
Binary file not shown.

gitlab-ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
image: docker:latest
2+
3+
variables:
4+
REPOSITORY_URL: 898668804275.dkr.ecr.eu-central-1.amazonaws.com/cloudelligent/nginx-web-app
5+
6+
services:
7+
- docker:dind
8+
9+
before_script:
10+
- apk add --no-cache curl jq python py-pip
11+
- pip install awscli
12+
13+
stages:
14+
- build
15+
16+
build:
17+
stage: build
18+
script:
19+
- $(aws ecr get-login --no-include-email --region eu-central-1)
20+
- docker build -t $REPOSITORY_URL .
21+
- docker push $REPOSITORY_URL
22+
only:
23+
- master
24+
tags:
25+
- docker

0 commit comments

Comments
 (0)