mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-23 00:13:11 +01:00
Changing REF_URL to use HEAD/TAG agnostic API
Per [dicsuccion](https://github.com/netbox-community/netbox-docker/pull/137#issuecomment-495667921) with @cimnine, changing the API endpoint to one that retains functionality of previous URL while supporting both HEADS and TAGS
This commit is contained in:
parent
e33a2d2c0a
commit
a086c2fc22
@ -36,7 +36,7 @@ ARG REQUIREMENTS_URL=https://raw.githubusercontent.com/digitalocean/netbox/$BRAN
|
||||
ADD ${REQUIREMENTS_URL} requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
ARG REF_URL=https://api.github.com/repos/digitalocean/netbox/git/refs/heads/$BRANCH
|
||||
ARG REF_URL=https://api.github.com/repos/digitalocean/netbox/contents?ref=$BRANCH
|
||||
ADD ${REF_URL} version.json
|
||||
|
||||
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user