test
Some checks failed
Container Publish / build-image (push) Failing after 20m57s

This commit is contained in:
Paolo Asperti 2024-07-27 18:31:28 +02:00
parent 5de9789a88
commit d468fb41d3
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 15 additions and 9 deletions

View File

@ -25,12 +25,26 @@ jobs:
~/.resources/ ~/.resources/
key: bglug-it-hugo-resources key: bglug-it-hugo-resources
- name: Build Hugo
uses: lowply/build-hugo@v0.129.0
with:
args: --gc --minify --cleanDestinationDir
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX - name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
# - name: Save Primes
# id: cache-primes-save
# uses: actions/cache/save@v4
# with:
# path: |
# path/to/dependencies
# some/other/dependencies
# key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}
# - name: Login to registry # - name: Login to registry
# uses: docker/login-action@v3 # uses: docker/login-action@v3
# with: # with:

View File

@ -1,11 +1,3 @@
FROM git.libreschool.org/bglug/hugo-extended:latest AS hugobuild
COPY . /src
RUN \
mkdir -p /out && \
hugo -s /src --gc --minify --cleanDestinationDir -d /out
FROM alpine:latest FROM alpine:latest
RUN \ RUN \
@ -16,7 +8,7 @@ RUN \
chmod -R a-x,a=rX,ug+w /wwwroot /logs chmod -R a-x,a=rX,ug+w /wwwroot /logs
COPY docker/rootfs / COPY docker/rootfs /
COPY --from=hugobuild --chown=nginx:www-data --chmod=a-x,a=rX,ug+w /out /wwwroot/ COPY --chown=nginx:www-data --chmod=a-x,a=rX,ug+w public/ /wwwroot/
# config test # config test
RUN nginx -t RUN nginx -t