mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
Added support for Forks.
This commit is contained in:
parent
3154d9e5e0
commit
2d593dc64e
2 changed files with 6 additions and 2 deletions
1
.github/workflows/docker-build.yml
vendored
1
.github/workflows/docker-build.yml
vendored
|
|
@ -50,6 +50,7 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
build-args: |
|
build-args: |
|
||||||
BRANCH=${{ env.BRANCH }}
|
BRANCH=${{ env.BRANCH }}
|
||||||
|
REPO_URL=https://github.com/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ env.REPO_NAME }}:${{ env.TAG }}
|
ghcr.io/${{ env.REPO_NAME }}:${{ env.TAG }}
|
||||||
ghcr.io/${{ env.REPO_NAME }}:${{ github.sha }}
|
ghcr.io/${{ env.REPO_NAME }}:${{ github.sha }}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
FROM python:3.13-slim AS builder
|
FROM python:3.13-slim AS builder
|
||||||
|
|
||||||
# Define build argument with default value of "main"
|
# Define build arguments with default values
|
||||||
ARG BRANCH=main
|
ARG BRANCH=main
|
||||||
|
# This will be overridden by the GitHub Actions workflow
|
||||||
|
# when building the Docker image for production.
|
||||||
|
ARG REPO_URL=https://github.com/Dispatcharr/Dispatcharr
|
||||||
|
|
||||||
ENV PATH="/dispatcharrpy/bin:$PATH" \
|
ENV PATH="/dispatcharrpy/bin:$PATH" \
|
||||||
VIRTUAL_ENV=/dispatcharrpy \
|
VIRTUAL_ENV=/dispatcharrpy \
|
||||||
|
|
@ -27,7 +30,7 @@ RUN apt-get update && \
|
||||||
nodejs && \
|
nodejs && \
|
||||||
python -m pip install virtualenv && \
|
python -m pip install virtualenv && \
|
||||||
virtualenv /dispatcharrpy && \
|
virtualenv /dispatcharrpy && \
|
||||||
git clone -b ${BRANCH} https://github.com/Dispatcharr/Dispatcharr /app && \
|
git clone -b ${BRANCH} ${REPO_URL} /app && \
|
||||||
cd /app && \
|
cd /app && \
|
||||||
rm -rf .git && \
|
rm -rf .git && \
|
||||||
cd /app && \
|
cd /app && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue