mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-10 14:50:58 +03:00
Compare commits
3 Commits
bug-fixes
...
docker-hot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4ca1abb7c | ||
|
|
d90434c240 | ||
|
|
7a8e94ee64 |
15
.github/workflows/docker-pr.yml
vendored
15
.github/workflows/docker-pr.yml
vendored
@@ -23,5 +23,16 @@ jobs:
|
|||||||
name: "version.json"
|
name: "version.json"
|
||||||
json: '{"type": "docker", "tag": "nightly", "commit": "${{ steps.vars.outputs.sha_short }}", "date": "${{ steps.date.outputs.date }}"}'
|
json: '{"type": "docker", "tag": "nightly", "commit": "${{ steps.vars.outputs.sha_short }}", "date": "${{ steps.date.outputs.date }}"}'
|
||||||
dir: 'backend/'
|
dir: 'backend/'
|
||||||
- name: Build docker images
|
- name: setup platform emulator
|
||||||
run: docker build . -t tzahi12345/youtubedl-material:nightly-pr
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: setup multi-arch docker build
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: build & push images
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm,linux/arm64/v8
|
||||||
|
#platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
tags: tzahi12345/youtubedl-material:nightly-pr
|
||||||
2
.github/workflows/docker-release.yml
vendored
2
.github/workflows/docker-release.yml
vendored
@@ -84,3 +84,5 @@ jobs:
|
|||||||
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 }}
|
||||||
|
|||||||
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
@@ -84,3 +84,6 @@ jobs:
|
|||||||
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 }}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user