Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifying #188

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/upload_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- 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