File tree Expand file tree Collapse file tree 1 file changed +14
-32
lines changed Expand file tree Collapse file tree 1 file changed +14
-32
lines changed Original file line number Diff line number Diff line change 11version : 2.1
2+ orbs :
3+ aws-ecr : circleci/aws-ecr@8.1.2
24
3- jobs :
4- build :
5- docker :
6- - image : golang:1.23.3
7- steps :
8- - checkout
9- - run :
10- name : Install Dependencies
11- command : go mod tidy
12- - run :
13- name : Run Tests
14- command : go test ./...
15- - run :
16- name : Build Application
17- command : go build -o bank-ifsc main.go
18-
19- deploy :
20- docker :
21- - image : golang:1.23.3
22- steps :
23- - checkout
24- - run :
25- name : Deploy Application
26- command : |
27- echo "Deploying application..."
28- # Add your deployment steps here (e.g., deploy with Docker/Portainer)
5+ executors :
6+ default-ubuntu :
7+ machine :
8+ image : default
299
3010workflows :
31- version : 2
32- build_and_deploy :
11+ build_and_push_image :
3312 jobs :
34- - build
35- - deploy :
36- requires :
37- - build
13+ - aws-ecr/build-and-push-image :
14+ executor : default-ubuntu
15+ context : imrkgofficial
16+ create-repo : true
17+ repo : " ${CIRCLE_PROJECT_REPONAME}"
18+ region : ${AWS_REGION}
19+ tag : " ${CIRCLE_BUILD_NUM}"
You can’t perform that action at this time.
0 commit comments