diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a870a95..be83915 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,12 +24,12 @@ jobs: # Step 3: Build the Docker image - name: Build Docker image run: | - docker build -t ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:2.0 . + docker build -t ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:3.0 . # Step 4: Push Docker image to DockerHub - name: Push Docker image run: | - docker push ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:2.0 + docker push ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:3.0 # Step 5: SSH to EC2 and deploy the Docker container - name: Deploy to EC2 @@ -41,7 +41,7 @@ jobs: port: 22 script: | # Pull the latest image - sudo docker pull ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:2.0 + sudo docker pull ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:3.0 # Check if the container is running and stop/remove it if it exists if [ "$(sudo docker ps -a -q -f name=nextblog)" ]; then @@ -57,4 +57,4 @@ jobs: # Run the container echo "Starting a new container..." - sudo docker run -d --name nextblog --env-file .env -p 9000:5000 ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:2.0 + sudo docker run -d --name nextblog --env-file .env -p 9000:5000 ${{ secrets.DOCKERHUB_USER_NAME }}/nextblog:3.0 diff --git a/dist/helpers/s3Uploader.js b/dist/helpers/s3Uploader.js index 992e9c0..e06bef9 100644 --- a/dist/helpers/s3Uploader.js +++ b/dist/helpers/s3Uploader.js @@ -19,7 +19,7 @@ const fs_1 = __importDefault(require("fs")); const uploadImageS3 = (file) => __awaiter(void 0, void 0, void 0, function* () { console.log(file); const fileBuffer = fs_1.default.readFileSync(file.path); - console.log(fileBuffer); + // console.log(fileBuffer); // Upload file to S3 const params = { Bucket: config_1.default.aws_bucket_name,