diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml index 02bb037..f632fe7 100644 --- a/.github/workflows/build-main.yml +++ b/.github/workflows/build-main.yml @@ -19,26 +19,31 @@ jobs: folder: build/latest file: Dockerfile.mono platforms: linux/amd64,linux/arm64 + sha1: 584966ef6029f21dc842a7f55f6f117b3a0b0321 - tag: "0.9.2.1" version: "0.9.2.1" folder: build/latest file: Dockerfile.mono platforms: linux/amd64,linux/arm64 + sha1: c5d2e690a7739fa9c0651845b31d912f88d6fa22 - tag: "0.9.2.2" version: "0.9.2.2" folder: build/latest file: Dockerfile.mono platforms: linux/amd64,linux/arm64 + sha1: b280d109cf04755a02db1c729af5a5e4160d1ce6 - tag: "0.9.3.0" version: "0.9.3.0" folder: build/latest file: Dockerfile platforms: linux/amd64,linux/arm64 + sha1: a4bcd861626195af80cc1f962d3a2f4528859ad2 - tag: "latest" version: "0.9.3.0" folder: build/latest file: Dockerfile platforms: linux/amd64,linux/arm64 + sha1: a4bcd861626195af80cc1f962d3a2f4528859ad2 steps: - name: Checkout Codebase @@ -76,5 +81,6 @@ jobs: file: "${{ matrix.file }}" build-args: | OPENSIM_VERSION=${{ matrix.version }} + OPENSIM_SHA1=${{ matrix.sha1 }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/build/latest/Dockerfile b/build/latest/Dockerfile index 56d4838..02a6aaf 100644 --- a/build/latest/Dockerfile +++ b/build/latest/Dockerfile @@ -6,13 +6,16 @@ LABEL org.opencontainers.image.source="https://github.com/soup-bowl/opensimulato LABEL org.opencontainers.image.licenses="MIT" ARG OPENSIM_VERSION=0.9.3.0 +ARG OPENSIM_SHA1="a4bcd861626195af80cc1f962d3a2f4528859ad2" RUN apt-get update \ && apt-get install -y apt-utils curl libc6-dev libgdiplus libsqlite3-dev screen uuid-runtime \ && apt-get clean RUN mkdir /opt/opensim-tmp \ - && curl "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" | tar xzf - -C /opt/opensim-tmp \ + && curl -o /opt/opensim-tmp/opensim.tar.gz "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" \ + && echo "${OPENSIM_SHA1} /opt/opensim-tmp/opensim.tar.gz" | sha1sum -c - \ + && tar xzf /opt/opensim-tmp/opensim.tar.gz -C /opt/opensim-tmp \ && rm /opt/opensim-tmp/opensim*/bin/OpenSim.ini \ && rm /opt/opensim-tmp/opensim*/bin/config-include/StandaloneCommon.ini \ && rm /opt/opensim-tmp/opensim*/bin/config-include/storage/SQLiteStandalone.ini \ diff --git a/build/latest/Dockerfile.mono b/build/latest/Dockerfile.mono index e0e1b45..471b29a 100644 --- a/build/latest/Dockerfile.mono +++ b/build/latest/Dockerfile.mono @@ -6,13 +6,16 @@ LABEL org.opencontainers.image.source="https://github.com/soup-bowl/opensimulato LABEL org.opencontainers.image.licenses="MIT" ARG OPENSIM_VERSION=0.9.2.2 +ARG OPENSIM_SHA1="b280d109cf04755a02db1c729af5a5e4160d1ce6" RUN apt-get update \ && apt-get install -y curl screen uuid-runtime \ && apt-get clean RUN mkdir /opt/opensim-tmp \ - && curl "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" | tar xzf - -C /opt/opensim-tmp \ + && curl -o /opt/opensim-tmp/opensim.tar.gz "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" \ + && echo "${OPENSIM_SHA1} /opt/opensim-tmp/opensim.tar.gz" | sha1sum -c - \ + && tar xzf /opt/opensim-tmp/opensim.tar.gz -C /opt/opensim-tmp \ && rm /opt/opensim-tmp/opensim*/bin/OpenSim.ini \ && rm /opt/opensim-tmp/opensim*/bin/config-include/StandaloneCommon.ini \ && rm /opt/opensim-tmp/opensim*/bin/config-include/storage/SQLiteStandalone.ini \