diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a840863..50e56e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,13 +37,6 @@ jobs: id: buildx uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - id: login - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GitHub Container Registry id: ghcr uses: docker/login-action@v1 diff --git a/Dockerfile b/Dockerfile index 14b7373..ced361b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -#FROM python:3.10-slim -FROM ubuntu:22.04 +FROM python:3.10-slim ARG GITHUB_TOKEN ENV GITHUB_TOKEN $GITHUB_TOKEN @@ -18,8 +17,7 @@ WORKDIR /usr/src/app COPY . . RUN apt update && \ - apt-get install build-essential libffi-dev \ - python3 python3-dev python3-pip -y && \ - pip install --no-cache-dir -r requirements.txt + apt-get install build-essential libffi-dev -y \ + && pip install --no-cache-dir -r requirements.txt CMD [ "/bin/bash", "./run.sh" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e70d69b..1aeca5d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: restart: always revanced-releases-api: container_name: revanced-releases-api - image: alexandreteles/revanced-releases-api:latest + image: ghcr.io/alexandreteles/revanced-releases-api:latest environment: - GITHUB_TOKEN=YOUR_GITHUB_TOKEN - REDIS_URL=revanced-releases-api-redis diff --git a/portainer-stack.yml b/portainer-stack.yml index 65df6f4..aa3efe8 100644 --- a/portainer-stack.yml +++ b/portainer-stack.yml @@ -16,7 +16,7 @@ services: restart: always revanced-releases-api: container_name: revanced-releases-api - image: alexandreteles/revanced-releases-api:latest + image: ghcr.io/alexandreteles/revanced-releases-api:latest environment: - GITHUB_TOKEN=YOUR_GITHUB_TOKEN - REDIS_URL=revanced-releases-api-redis