diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 6d7566c..35c5070 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -54,6 +54,8 @@ jobs:
USER: ${{ secrets.AWS_EC2_USER }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
+ INSTAGRAM_USERNAME: ${{ secrets.INSTAGRAM_USERNAME }}
+ INSTAGRAM_PASSWORD: ${{ secrets.INSTAGRAM_PASSWORD }}
run: |
echo "${{ secrets.AWS_EC2_PEM }}" > /tmp/key.pem
chmod 600 /tmp/key.pem
@@ -68,6 +70,13 @@ jobs:
docker rm backend frontend || true
docker pull $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-backend
docker pull $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-frontend
- docker run -d --network=my-app-network --name backend -p 8080:8080 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-backend
- docker run -d --network=my-app-network --name frontend -p 80:80 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-frontend
+
+ # Run backend and frontend with Instagram credentials passed as environment variables
+ docker run -d --network=my-app-network --name backend -p 8080:8080 \
+ -e INSTAGRAM_USERNAME="$INSTAGRAM_USERNAME" \
+ -e INSTAGRAM_PASSWORD="$INSTAGRAM_PASSWORD" \
+ $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-backend
+
+ docker run -d --network=my-app-network --name frontend -p 80:80 \
+ $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/video-downloader-frontend
EOF
diff --git a/video-downloader-backend/pom.xml b/video-downloader-backend/pom.xml
index 6e79237..6a6dfc9 100644
--- a/video-downloader-backend/pom.xml
+++ b/video-downloader-backend/pom.xml
@@ -42,6 +42,15 @@
org.springframework.boot
spring-boot-starter-jdbc
+
+
+ software.amazon.awssdk
+ transcribe
+ 2.29.9
+
+
+
+
diff --git a/video-downloader-backend/src/main/java/ch/marc/controller/VideoDownloadController.java b/video-downloader-backend/src/main/java/ch/marc/controller/VideoDownloadController.java
index d908132..071a626 100644
--- a/video-downloader-backend/src/main/java/ch/marc/controller/VideoDownloadController.java
+++ b/video-downloader-backend/src/main/java/ch/marc/controller/VideoDownloadController.java
@@ -29,7 +29,7 @@ public class VideoDownloadController {
public ResponseEntity