diff --git a/Dockerfile.xlget b/Dockerfile.xlget index a66b0dc..14b2ea5 100644 --- a/Dockerfile.xlget +++ b/Dockerfile.xlget @@ -2,11 +2,6 @@ FROM golang:1.14-alpine as build-env # Arguments for build ARG arch=amd64 -# Set github user and token for private repositories -ARG github_user -ENV github_user=$github_user -ARG github_token -ENV github_token=$github_token # Install git and certificates RUN apk update && apk add --no-cache git make ca-certificates && update-ca-certificates @@ -22,11 +17,6 @@ RUN adduser -D -g 'luids' luxlist \ WORKDIR /app -## config git -RUN if [ ! -z "$github_user" ]; then git config --global \ - url."https://${github_user}:${github_token}@github.com/".insteadOf \ - "https://github.com/"; fi - ## dependences COPY go.mod . COPY go.sum . diff --git a/Dockerfile.xlistd b/Dockerfile.xlistd index 1b56fb9..c7f8370 100644 --- a/Dockerfile.xlistd +++ b/Dockerfile.xlistd @@ -2,11 +2,6 @@ FROM golang:1.14-alpine as build-env # Arguments for build ARG arch=amd64 -# Set github user and token for private repositories -ARG github_user -ENV github_user=$github_user -ARG github_token -ENV github_token=$github_token # Install git and certificates RUN apk update && apk add --no-cache git make ca-certificates && update-ca-certificates @@ -16,11 +11,6 @@ RUN adduser -D -g 'luids' luxlist WORKDIR /app -## config git -RUN if [ ! -z "$github_user" ]; then git config --global \ - url."https://${github_user}:${github_token}@github.com/".insteadOf \ - "https://github.com/"; fi - ## dependences COPY go.mod . COPY go.sum . diff --git a/Makefile b/Makefile index a3acfde..f26b09b 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,8 @@ clean: docker: @echo "$(WHALE) $@" - docker build -t xlistd -f Dockerfile.xlistd \ - --build-arg github_user=${github_user} --build-arg github_token=${github_token} . - docker build -t xlget -f Dockerfile.xlget \ - --build-arg github_user=${github_user} --build-arg github_token=${github_token} . + docker build -t xlistd -f Dockerfile.xlistd . + docker build -t xlget -f Dockerfile.xlget . ## Targets for Makefile.release .PHONY: release