Skip to content

Commit

Permalink
Update main.yml run 3
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsnoopy authored Oct 7, 2024
1 parent 920cc4b commit c3304bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
.

0 comments on commit c3304bb

Please sign in to comment.