Skip to content

Commit 15804ed

Browse files
Update config.yml
1 parent 40371e9 commit 15804ed

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

.circleci/config.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,19 @@
11
version: 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

3010
workflows:
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}"

0 commit comments

Comments
 (0)