Compare commits

..

3 Commits

Author SHA1 Message Date
Isaac Abadi
a4ca1abb7c Adds token to GH actions for GetTwitchDownloader 2023-05-07 00:51:21 -04:00
Isaac Abadi
d90434c240 Added python3.8-dev/build-essential to dockerfile 2023-05-07 00:24:47 -04:00
Isaac Abadi
7a8e94ee64 Added PR multiarch 2023-05-07 00:22:08 -04:00
5 changed files with 11 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm,linux/arm64/v8
#platforms: linux/amd64 #platforms: linux/amd64
push: false push: false
tags: tzahi12345/youtubedl-material:nightly-pr tags: tzahi12345/youtubedl-material:nightly-pr

View File

@@ -80,7 +80,9 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm,linux/arm64/v8
push: true push: true
tags: ${{ steps.docker-meta.outputs.tags }} tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }} labels: ${{ steps.docker-meta.outputs.labels }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -80,7 +80,10 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm,linux/arm64/v8
push: true push: true
tags: ${{ steps.docker-meta.outputs.tags }} tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }} labels: ${{ steps.docker-meta.outputs.labels }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -53,7 +53,7 @@ FROM base as python
WORKDIR /app WORKDIR /app
COPY docker-utils/GetTwitchDownloader.py . COPY docker-utils/GetTwitchDownloader.py .
RUN apt update && \ RUN apt update && \
apt install -y --no-install-recommends python3-minimal python-is-python3 python3-pip && \ apt install -y --no-install-recommends python3-minimal python-is-python3 python3-pip python3.8-dev build-essential && \
apt clean && \ apt clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN pip install PyGithub requests RUN pip install PyGithub requests

View File

@@ -26,7 +26,8 @@ def getZipName():
def getLatestFileInRepo(repo, search_string): def getLatestFileInRepo(repo, search_string):
# Create an unauthenticated instance of the Github object # Create an unauthenticated instance of the Github object
g = Github(os.environ.get('GH_TOKEN')) gh_token = os.environ.get('GH_TOKEN')
g = Github(gh_token if gh_token else None) # ensure it's none if it's falsy
# Replace with the repository owner and name # Replace with the repository owner and name
repo = g.get_repo(repo) repo = g.get_repo(repo)