Compare commits

5 Commits
dev ... main

Author SHA1 Message Date
Gabriel Kheisa
c83b842968 Update xpath 2024-05-14 03:05:10 +07:00
Gabriel Kheisa
c293cf5e67 Update run.py 2024-04-23 23:18:15 +07:00
gabrielkheisa
2cb5041524 update 2024-04-14 15:17:13 +07:00
Gabriel Kheisa
e3d935f6da Create docker-image.yml 2024-04-14 14:59:48 +07:00
Gabriel Kheisa
107c837fe8 Docker deployment (#5)
* remove parallelism

* Deployment using Docker
2024-04-14 14:42:28 +07:00
2 changed files with 37 additions and 0 deletions

23
.github/workflows/docker-image.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Build and Publish Docker Image
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to GitHub Packages Docker registry
run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
- name: Build Docker image
run: docker build -t docker.pkg.github.com/${{ github.repository }}/${{ github.repository }}:latest .
- name: Push Docker image
run: docker push docker.pkg.github.com/${{ github.repository }}/${{ github.repository }}:latest

View File

@@ -80,6 +80,20 @@ This micro web server does not directly download the Instagram Reels video. It s
sudo docker run -d -p 8080:8080 instagram-downloader
```
### With existing Docker Image
1. Pull the Docker image
```
sudo docker pull ghcr.io/gabrielkheisa/instagram-downloader/gabrielkheisa/instagram-downloader:latest
```
2. Run the container
```
sudo docker run -d -p 8080:8080 ghcr.io/gabrielkheisa/instagram-downloader/gabrielkheisa/instagram-downloader
```
## Usage