Skip to content

Commit

Permalink
Include dasel v1.11.0 and block usage of dasel update
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWright committed Dec 22, 2020
1 parent 6cfea2a commit 1e5eb97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN go build -o bin/server cmd/server/main.go

WORKDIR bin/builds
RUN curl -s https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_latest && chmod +x dasel_latest
RUN curl -s https://api.github.com/repos/tomwright/dasel/releases | grep v1.11.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_11_0 && chmod +x dasel_v1_11_0
RUN curl -s https://api.github.com/repos/tomwright/dasel/releases | grep v1.10.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_10_0 && chmod +x dasel_v1_10_0
RUN curl -s https://api.github.com/repos/tomwright/dasel/releases | grep v1.9.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_9_1 && chmod +x dasel_v1_9_1
RUN curl -s https://api.github.com/repos/tomwright/dasel/releases | grep v1.8.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_8_0 && chmod +x dasel_v1_8_0
Expand Down Expand Up @@ -44,6 +45,7 @@ COPY --from=node /root/frontend ./frontend
COPY ./migrations ./migrations

ENV DASEL_BUILDS="latest:./builds/dasel_latest"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.11.0:./builds/dasel_v1_11_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.10.0:./builds/dasel_v1_10_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.9.1:./builds/dasel_v1_9_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.8.0:./builds/dasel_v1_8_0"
Expand Down
2 changes: 1 addition & 1 deletion internal/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type ExecuteArgs struct {
}

var restrictedArgs = []string{
"-o", "--out",
"-o", "--out", "update",
}

var argsParser = shellwords.NewParser()
Expand Down

0 comments on commit 1e5eb97

Please sign in to comment.