From 15804eda847f17178d2ca822c04223f01f83605e Mon Sep 17 00:00:00 2001 From: imrkgofficial <86479367+imrkgofficial@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:21:14 +0530 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 46 ++++++++++++++------------------------------ 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ead9e5..a599f9e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,37 +1,19 @@ version: 2.1 +orbs: + aws-ecr: circleci/aws-ecr@8.1.2 -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) +executors: + default-ubuntu: + machine: + image: default workflows: - version: 2 - build_and_deploy: + build_and_push_image: jobs: - - build - - deploy: - requires: - - build + - aws-ecr/build-and-push-image: + executor: default-ubuntu + context: imrkgofficial + create-repo: true + repo: "${CIRCLE_PROJECT_REPONAME}" + region: ${AWS_REGION} + tag: "${CIRCLE_BUILD_NUM}"