Skip to content

Commit

Permalink
edit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yordanovsstoyan committed Nov 12, 2024
1 parent 43f8a3f commit d46b1c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-push-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ jobs:

- name: Fetch Parameter from SSM and set as env variable
run: |
ECR_REPO=$(aws ssm get-parameter --name "/ecr_repo_name" --query "Parameter.Value" --output text --region ${{ env.region }})
echo "ECR_REPO=$ECR_REPO" >> $GITHUB_ENV
ECR_REGISTRY_URL=$(aws ssm get-parameter --name "/ecr_registry_url" --query "Parameter.Value" --output text --region ${{ env.region }})
echo "ECR_REGISTRY_URL=$ECR_REGISTRY_URL" >> $GITHUB_ENV
- name: Build, Tag, and Push the Image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPO }}
ECR_REGISTRY: ${{ env.ECR_REGISTRY }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest mysql-connect-app
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY
docker build -t $ECR_REGISTRYY:$IMAGE_TAG -t $ECR_REGISTRY:latest mysql-connect-app
docker push -a $ECR_REGISTRY
deploy:
name: Deploy Helm chart
Expand Down
1 change: 0 additions & 1 deletion mysql-connect-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@
if connection:
connection.close()
print("Connection closed.")
time.sleep(100000)

0 comments on commit d46b1c3

Please sign in to comment.