🐳 By default, build `latest` from the `master` branch
This commit is contained in:
parent
34d5bd711e
commit
4ce4373eb0
|
@ -18,7 +18,7 @@ RUN apk add --no-cache \
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
ARG BRANCH=v2.0.7
|
ARG BRANCH=master
|
||||||
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz
|
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz
|
||||||
RUN wget -q -O - "${URL}" | tar xz \
|
RUN wget -q -O - "${URL}" | tar xz \
|
||||||
&& mv netbox* netbox
|
&& mv netbox* netbox
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- BRANCH=${BRANCH-master}
|
- BRANCH=${BRANCH-master}
|
||||||
image: ninech/netbox:${BRANCH-master}
|
image: ninech/netbox:${BRANCH-latest}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
env_file: netbox.env
|
env_file: netbox.env
|
||||||
|
|
Loading…
Reference in New Issue