From 0ee4d6d973970169c423802d517c3f17ed32b552 Mon Sep 17 00:00:00 2001 From: Benjamin Sherwood Date: Wed, 28 Jun 2023 10:55:18 +0100 Subject: [PATCH] Simplifying --- .github/workflows/upload_test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/upload_test.yml b/.github/workflows/upload_test.yml index 5e01680..3711c87 100644 --- a/.github/workflows/upload_test.yml +++ b/.github/workflows/upload_test.yml @@ -24,15 +24,15 @@ jobs: aws-region: eu-west-2 - name: Login to ECR in test - id: login-ecr-test + id: login-ecr uses: aws-actions/amazon-ecr-login@v1.5.3 - name: Build & Push Image to ECR in test env: - ECR_REGISTRY_TEST: ${{ steps.login-ecr-test.outputs.registry }} - ECR_REPOSITORY_TEST: beis - IMAGE_TAG_TEST: latest + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + ECR_REPOSITORY: beis + IMAGE_TAG: latest run: | - docker build -t $ECR_REGISTRY_TEST/$ECR_REPOSITORY_TEST:$IMAGE_TAG_TEST --build-arg BUILD_NUMBER=${{ github.run_number }} --build-arg GIT_REF=$(git log -n 1 | awk '{print $2; exit}') . - docker push $ECR_REGISTRY_TEST/$ECR_REPOSITORY_TEST:$IMAGE_TAG + 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