Skip to content

Commit 06a2b1c

Browse files
committed
Container: Support to pass a fork repository as argument
1 parent 8d94ae4 commit 06a2b1c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/container/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM alpine:3.15.4 AS build
2+
ARG REPOSITORY=https://github.com/processone/ejabberd.git
23
ARG VERSION=master
34

45
RUN apk upgrade --update musl \
@@ -30,7 +31,7 @@ RUN mix local.hex --force \
3031

3132
WORKDIR ejabberd
3233

33-
RUN git clone https://github.com/processone/ejabberd.git . \
34+
RUN git clone $REPOSITORY . \
3435
&& git checkout $VERSION \
3536
&& mv .github/container/ejabberdctl.template . \
3637
&& ./autogen.sh \

.github/workflows/container.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
uses: docker/[email protected]
5959
with:
6060
build-args: |
61+
REPOSITORY=https://github.com/${{ github.repository }}.git
6162
VERSION=${{ steps.gitdescribe.outputs.ver }}
6263
cache-from: type=gha
6364
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)