Deploy assets from CI
All checks were successful
Build / build (push) Successful in 50s

This commit is contained in:
Frederik Ring 2023-09-02 20:55:43 +02:00
parent e9d30f58ff
commit 6089cc8179
3 changed files with 14 additions and 2 deletions

View File

@ -15,3 +15,15 @@ jobs:
- name: Build
run: |
make build
- name: Install MinIO client
run: |
curl -sSL https://dl.min.io/client/mc/release/linux-$(uname -m | sed 's/x86_64/amd64/')/mc -o mc
chmod +x mc
mv mc /usr/local/bin/mc
command -v mc
- name: Configure MinIO client
run: |
mc alias set offen https://storage.offen.dev offen ${{ secrets.MINIO_SECRET_KEY }}
- name: Deploy
run: |
mc mirror --remove --overwrite ./output/ offen/software-website

View File

@ -32,4 +32,4 @@ build:
@docker create --entrypoint=bash --name assets offen/software-builder-website
@docker cp assets:/code/website/output/. ./output/
@docker rm assets
@docker rmi offen/software-builder-website
@docker rmi offen/software-builder-website:latest

View File

@ -18,4 +18,4 @@ COPY ./build /code/build
ARG siteurl
ENV SITEURL=$siteurl
RUN make publish
RUN make publish && rm -rf output/theme/.webassets-cache