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

Simplify 2, PreProd #189

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
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
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