From 25f60e4b1241a801530cf22d4ca33d12edb1ec1c Mon Sep 17 00:00:00 2001 From: Haroun Alarabi <109032469+HarounAlarabi@users.noreply.github.com> Date: Wed, 14 Feb 2024 19:06:21 +0000 Subject: [PATCH] Update backend-ec2-deploy.yml Signed-off-by: Haroun Alarabi <109032469+HarounAlarabi@users.noreply.github.com> --- .github/workflows/backend-ec2-deploy.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backend-ec2-deploy.yml b/.github/workflows/backend-ec2-deploy.yml index f4f0209334..549dae806c 100644 --- a/.github/workflows/backend-ec2-deploy.yml +++ b/.github/workflows/backend-ec2-deploy.yml @@ -19,11 +19,9 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: harounalarabi/server:latest + run: | + docker build -t harounalarabi/server + docker push harounalarabi/server:latest - name: Deploy to EC2