Skip to content

Commit

Permalink
Merge pull request #189 from mdrxtech/simplify2
Browse files Browse the repository at this point in the history
Simplify 2, PreProd
  • Loading branch information
benjaminsherwood authored Jun 28, 2023
2 parents 249d648 + a5c2c66 commit e4f615c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload_dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Release to ECR Dev
name: Upload Release to ECR dev

#concurrency: upload_to_ecr

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/upload_preprod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Release to ECR PreProd
name: Upload Release to ECR preprod

#concurrency: upload_to_ecr

Expand All @@ -24,15 +24,15 @@ jobs:
aws-region: eu-west-2

- name: Login to ECR in preprod
id: login-ecr-prepod
id: login-ecr
uses: aws-actions/[email protected]

- name: Build & Push Image to ECR in dev
- name: Build & Push Image to ECR in preprod
env:
ECR_REGISTRY_PREPROD: ${{ steps.login-ecr-preprod.outputs.registry }}
ECR_REPOSITORY_PREPROD: beis
IMAGE_TAG_PREPROD: latest
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: beis
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY_PREPROD/$ECR_REPOSITORY_PREPROD:$IMAGE_TAG_PREPROD --build-arg BUILD_NUMBER=${{ github.run_number }} --build-arg GIT_REF=$(git log -n 1 | awk '{print $2; exit}') .
docker push $ECR_REGISTRY_PREPROD/$ECR_REPOSITORY_PREPROD:$IMAGE_TAG_PREPROD
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg BUILD_NUMBER=${{ github.run_number }} --build-arg GIT_REF=$(git log -n 1 | awk '{print $2; exit}') .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
aws ecs update-service --force-new-deployment --service ecs_webserver --cluster ecs_webserver
2 changes: 1 addition & 1 deletion .github/workflows/upload_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Release to ECR Test
name: Upload Release to ECR test

#concurrency: upload_to_ecr

Expand Down

0 comments on commit e4f615c

Please sign in to comment.