Skip to content

Commit

Permalink
[TM-1312] Try without compose
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Oct 15, 2024
1 parent 688b396 commit e808f7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
id: build-image
run: |
echo "${{secrets.MICROSERVICES_TEST_ENV}}" > ./.env
SHORT_SHA_COMMIT=$(git rev-parse --short HEAD)
NODE_ENV=$NODE_ENV docker compose build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
# echo "${{secrets.MICROSERVICES_TEST_ENV}}" > ./.env
docker build --build-arg NODE_ENV=${{ env.NODE_ENV }} . -t terramatch-microservices-base:nx-base
# docker compose build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build --build-arg NODE_ENV=${{ env.NODE_ENV }} -f apps/user-service/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
Expand Down

0 comments on commit e808f7f

Please sign in to comment.