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:
Robert Ellegate 2019-05-28 10:42:40 -04:00
parent e33a2d2c0a
commit a086c2fc22
No known key found for this signature in database
GPG Key ID: 24D4785AF6ACD19A

View File

@ -36,7 +36,7 @@ ARG REQUIREMENTS_URL=https://raw.githubusercontent.com/digitalocean/netbox/$BRAN
ADD ${REQUIREMENTS_URL} requirements.txt ADD ${REQUIREMENTS_URL} requirements.txt
RUN pip install -r 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 ADD ${REF_URL} version.json
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz