Skip to content

Commit

Permalink
Update to use latest of each major version
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWright committed Nov 30, 2023
1 parent 9b4a639 commit f88d7c6
Showing 1 changed file with 4 additions and 54 deletions.
58 changes: 4 additions & 54 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,8 @@ 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?per_page=100" > dasel_releases
RUN cat dasel_releases | grep v1.27.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_27_1 && chmod +x dasel_v1_27_1
RUN cat dasel_releases | grep v1.26.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_26_1 && chmod +x dasel_v1_26_1
RUN cat dasel_releases | grep v1.25.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_25_0 && chmod +x dasel_v1_25_0
RUN cat dasel_releases | grep v1.24.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_24_0 && chmod +x dasel_v1_24_0
RUN cat dasel_releases | grep v1.23.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_23_0 && chmod +x dasel_v1_23_0
RUN cat dasel_releases | grep v1.22.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_22_1 && chmod +x dasel_v1_22_1
RUN cat dasel_releases | grep v1.21.2 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_21_2 && chmod +x dasel_v1_21_2
RUN cat dasel_releases | grep v1.20.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_20_1 && chmod +x dasel_v1_20_1
RUN cat dasel_releases | grep v1.19.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_19_0 && chmod +x dasel_v1_19_0
RUN cat dasel_releases | grep v1.18.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_18_0 && chmod +x dasel_v1_18_0
RUN cat dasel_releases | grep v1.17.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_17_0 && chmod +x dasel_v1_17_0
RUN cat dasel_releases | grep v1.16.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_16_1 && chmod +x dasel_v1_16_1
RUN cat dasel_releases | grep v1.15.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_15_0 && chmod +x dasel_v1_15_0
RUN cat dasel_releases | grep v1.14.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_14_0 && chmod +x dasel_v1_14_0
RUN cat dasel_releases | grep v1.13.4 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_13_4 && chmod +x dasel_v1_13_4
RUN cat dasel_releases | grep v1.12.2 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_12_2 && chmod +x dasel_v1_12_2
RUN cat 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 cat 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 cat 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 cat 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
RUN cat dasel_releases | grep v1.7.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_7_0 && chmod +x dasel_v1_7_0
RUN cat dasel_releases | grep v1.6.2 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_6_2 && chmod +x dasel_v1_6_2
RUN cat dasel_releases | grep v1.5.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_5_1 && chmod +x dasel_v1_5_1
RUN cat dasel_releases | grep v1.4.1 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_4_1 && chmod +x dasel_v1_4_1
RUN cat dasel_releases | grep v1.3.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_3_0 && chmod +x dasel_v1_3_0
RUN cat dasel_releases | grep v1.2.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_2_0 && chmod +x dasel_v1_2_0
RUN cat dasel_releases | grep v1.1.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_1_0 && chmod +x dasel_v1_1_0
RUN cat dasel_releases | grep v2.5.0 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v2_5_0 && chmod +x dasel_v2_5_0
RUN cat dasel_releases | grep v1.27.3 | grep browser_download_url | cut -d '"' -f 4 | wget -qi - && mv dasel_linux_amd64 dasel_v1_27_3 && chmod +x dasel_v1_27_3

# This stage builds the Svelte app
FROM node:15.0-buster as node
Expand All @@ -62,33 +37,8 @@ COPY --from=node /root/frontend ./frontend
COPY ./migrations ./migrations

ENV DASEL_BUILDS="latest:./builds/dasel_latest"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.27.1:./builds/dasel_v1_27_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.26.1:./builds/dasel_v1_26_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.25.0:./builds/dasel_v1_25_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.24.0:./builds/dasel_v1_24_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.23.0:./builds/dasel_v1_23_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.22.1:./builds/dasel_v1_22_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.21.2:./builds/dasel_v1_21_2"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.20.1:./builds/dasel_v1_20_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.19.0:./builds/dasel_v1_19_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.18.0:./builds/dasel_v1_18_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.17.0:./builds/dasel_v1_17_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.16.1:./builds/dasel_v1_16_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.15.0:./builds/dasel_v1_15_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.14.0:./builds/dasel_v1_14_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.13.4:./builds/dasel_v1_13_4"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.12.2:./builds/dasel_v1_12_2"
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"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.7.0:./builds/dasel_v1_7_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.6.2:./builds/dasel_v1_6_2"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.5.1:./builds/dasel_v1_5_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.4.1:./builds/dasel_v1_4_1"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.3.0:./builds/dasel_v1_3_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.2.0:./builds/dasel_v1_2_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.1.0:./builds/dasel_v1_1_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v2.5.0:./builds/dasel_v2_5_0"
ENV DASEL_BUILDS="${DASEL_BUILDS},v1.27.3:./builds/dasel_v1_27_3"

ENV HTTP_LISTEN_ADDRESS=:8080
ENV MIGRATIONS_PATH=/root/migrations
Expand Down

0 comments on commit f88d7c6

Please sign in to comment.