From 688b396c67b88c55ff022b649f5f7fd869c8a64b Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 15 Oct 2024 10:32:01 -0700 Subject: [PATCH] [TM-1312] Update docker compose command. --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9a3e234..68153f8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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"