Skip to content

Commit 40371e9

Browse files
Create config.yml
1 parent 6e0419e commit 40371e9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2.1
2+
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)
29+
30+
workflows:
31+
version: 2
32+
build_and_deploy:
33+
jobs:
34+
- build
35+
- deploy:
36+
requires:
37+
- build

0 commit comments

Comments
 (0)