-
-
Notifications
You must be signed in to change notification settings - Fork 281
59 lines (59 loc) · 1.48 KB
/
deploy.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'Push'
on:
push:
branches:
- $default-branch
schedule:
- cron: 2 4 10 * *
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 360
name: 'Build'
strategy:
fail-fast: false
matrix:
env:
-
- jekyll:4.2.2
- jekyll:stable
- jekyll:latest
- jekyll:4.0
- jekyll:4
-
- builder:4.2.2
- builder:stable
- builder:latest
- builder:4.0
- builder:4
-
- minimal:4.2.2
- minimal:stable
- minimal:latest
- minimal:4.0
- minimal:4
- builder:pages
- minimal:pages
- jekyll:pages
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.x'
- run: bundle install
- run: |
echo $'{\n "experimental": true\n}' | \
sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
name: 'docker experimental'
- name: 'docker login'
run: |
echo "${{secrets.DOCKER_PASSWORD}}" | docker login \
--username ${{secrets.DOCKER_USERNAME}} \
--password-stdin
- run: |
docker-template build $DOCKER_REPO --no-push --force --squash
docker-template push $DOCKER_REPO
env:
RUBYOPT: "-W0"
DOCKER_REPO: "${{join(matrix.env, ' ')}}"