diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59b4891..7fb5088 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,5 +35,9 @@ jobs: ECR_REPOSITORY: technews/backend IMAGE_TAG: latest run: | - docker build --build-arg MONGO_URI=${{ secrets.MONGO_URI }} -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + echo "Building Docker image..." + docker buildx build \ + --build-arg MONGO_URI=${{ secrets.MONGO_URI }} \ + -t "${ECR_REGISTRY}/${ECR_REPOSITORY}:${IMAGE_TAG}" \ + --push \ + .