mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Container: Support to pass a fork repository as argument
This commit is contained in:
parent
8d94ae4cb0
commit
06a2b1c671
3
.github/container/Dockerfile
vendored
3
.github/container/Dockerfile
vendored
@ -1,4 +1,5 @@
|
|||||||
FROM alpine:3.15.4 AS build
|
FROM alpine:3.15.4 AS build
|
||||||
|
ARG REPOSITORY=https://github.com/processone/ejabberd.git
|
||||||
ARG VERSION=master
|
ARG VERSION=master
|
||||||
|
|
||||||
RUN apk upgrade --update musl \
|
RUN apk upgrade --update musl \
|
||||||
@ -30,7 +31,7 @@ RUN mix local.hex --force \
|
|||||||
|
|
||||||
WORKDIR ejabberd
|
WORKDIR ejabberd
|
||||||
|
|
||||||
RUN git clone https://github.com/processone/ejabberd.git . \
|
RUN git clone $REPOSITORY . \
|
||||||
&& git checkout $VERSION \
|
&& git checkout $VERSION \
|
||||||
&& mv .github/container/ejabberdctl.template . \
|
&& mv .github/container/ejabberdctl.template . \
|
||||||
&& ./autogen.sh \
|
&& ./autogen.sh \
|
||||||
|
1
.github/workflows/container.yml
vendored
1
.github/workflows/container.yml
vendored
@ -58,6 +58,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2.10.0
|
uses: docker/build-push-action@v2.10.0
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
|
REPOSITORY=https://github.com/${{ github.repository }}.git
|
||||||
VERSION=${{ steps.gitdescribe.outputs.ver }}
|
VERSION=${{ steps.gitdescribe.outputs.ver }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
Loading…
Reference in New Issue
Block a user