Skip to content

Commit

Permalink
[TM-1312] Update docker compose command.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Oct 15, 2024
1 parent 97de648 commit 688b396
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ env:
ECR_REPOSITORY: terramatch-microservices/${{ github.events.inputs.env }}
ECR_REGISTRY: 603634817705.dkr.ecr.eu-west-1.amazonaws.com
NODE_ENV: production
IMAGE_TAG: ${{ github.sha }} # set the tag name for the docker image

jobs:
main:
services:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -48,7 +49,7 @@ jobs:
run: |
echo "${{secrets.MICROSERVICES_TEST_ENV}}" > ./.env
SHORT_SHA_COMMIT=$(git rev-parse --short HEAD)
NODE_ENV=${{ env.NODE_ENV }} docker-compose build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
NODE_ENV=$NODE_ENV docker compose build -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 688b396

Please sign in to comment.