feat(ci): establish build based on docker to produce ipfs-hashes (#3612)

This commit is contained in:
Mikołaj Młodzikowski
2023-05-09 18:24:39 +02:00
committed by GitHub
parent 02399c40fc
commit 65c9fa5df2
8 changed files with 172 additions and 49 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM --platform=amd64 nginx:1.23-alpine@sha256:6318314189b40e73145a48060bff4783a116c34cc7241532d0d94198fb2c9629
EXPOSE 80
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
RUN rm -rf /usr/share/nginx/html/*
COPY ./dist-result/ /usr/share/nginx/html/
RUN apk add --no-cache go-ipfs==0.16.0-r6 \
&& ipfs init \
&& echo "$(ipfs add -rwQ /usr/share/nginx/html)" > /ipfs-hash \
&& echo "ipfs hash of this build: $(cat /ipfs-hash)"