Skip to content

Commit

Permalink
chore(ci): Update deploy web
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jun 6, 2024
1 parent 5e7ae6e commit e80d47d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
- main

jobs:
build-web-release:
deploy-alpha:
runs-on: ubuntu-latest
environment: alpha
name: Build and push Web docker image for release
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout
Expand All @@ -32,9 +33,10 @@ jobs:
run: |
# Build a docker container and push it to ECR
aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin $ECR_REGISTRY
docker build -t web:alpha-${GITHUB_SHA::6} -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -f ./apps/web/Dockerfile .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${GITHUB_SHA::6} -t $ECR_REGISTRY/$ECR_REPOSITORY:latest -f ./apps/web/Dockerfile .
echo "Pushing image to ECR..."
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${GITHUB_SHA::6}
echo "name=image::$ECR_REGISTRY/$ECR_REPOSITORY:latest" >> $GITHUB_OUTPUT
- name: Force re-deploy task in service
Expand Down
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
4 changes: 0 additions & 4 deletions apps/api/startup.sh

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MPL-2.0",
"private": true,
"engineStrict": false,
"packageManager": "pnpm@9.2.0",
"release": {
"branches": [
"main"
Expand Down

0 comments on commit e80d47d

Please sign in to comment.