-
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (30 loc) · 908 Bytes
/
ci.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
name: CI with Docker
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
GKSwstype: 100
JULIA_NUM_THREADS: 2
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Cache __site
uses: actions/cache@v2
with:
path: __site
key: build-${{ hashFiles('**/Dockerfiles') }}
restore-keys: |
build-
- uses: whoan/docker-build-with-cache-action@v5
with:
username: terasakisatoshi
password: ${{ secrets.DOCKER_PASSWORD }}
image_name: terasakisatoshi/mathseminarjl
push_image_and_stages: false
- run: docker build --cache-from terasakisatoshi/mathseminarjl -t mathseminarjl .
- run: docker-compose run --rm julia julia -e 'using Pkg; Pkg.instantiate()'
- run: docker-compose run --rm julia julia /work/_mytools/deploy.jl