diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..3ead9e5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2.1 + +jobs: + build: + docker: + - image: golang:1.23.3 + steps: + - checkout + - run: + name: Install Dependencies + command: go mod tidy + - run: + name: Run Tests + command: go test ./... + - run: + name: Build Application + command: go build -o bank-ifsc main.go + + deploy: + docker: + - image: golang:1.23.3 + steps: + - checkout + - run: + name: Deploy Application + command: | + echo "Deploying application..." + # Add your deployment steps here (e.g., deploy with Docker/Portainer) + +workflows: + version: 2 + build_and_deploy: + jobs: + - build + - deploy: + requires: + - build