-
Notifications
You must be signed in to change notification settings - Fork 915
37 lines (33 loc) · 1011 Bytes
/
docker-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
image:
runs-on: ubuntu-latest
strategy:
matrix:
# The jekyll/builder was replaced by the action jekyll-build-pages
docker-image: [ 'sylhare/jekyll' ]
steps:
- uses: actions/checkout@v4
- name: Build
uses: actions/jekyll-build-pages@v1
with:
destination: "./output"
- name: Build with Docker
continue-on-error: true
run: |
cd assets && docker build .
- name: Build the site in the container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
${{ matrix.docker-image }}:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Pull docker images
continue-on-error: true
run: |
docker pull sylhare/type-on-strap
docker pull sylhare/jekyll