Skip to content

Commit

Permalink
Checksum check before proceeding.
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl committed Dec 27, 2024
1 parent cd4f0af commit 1adf7ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
5 changes: 4 additions & 1 deletion build/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 4 additions & 1 deletion build/latest/Dockerfile.mono
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1adf7ec

Please sign in to comment.