File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,17 @@ jobs:
29
29
registry : ghcr.io
30
30
username : ${{ github.actor }}
31
31
password : ${{ secrets.GITHUB_TOKEN }}
32
- - name : Build and push
32
+ - name : Docker build and push
33
33
id : docker_build
34
34
uses : docker/build-push-action@v2
35
35
with :
36
- push : true
36
+ push : false
37
37
context : build
38
38
tags : |
39
- ${{ github.repository_owner }}/manubot:latest
39
+ ghcr.io/${{ github.repository_owner }}/manubot:latest
40
+ cache-to : type=inline
41
+ - name : Show Docker images
42
+ run : docker images --all
40
43
- name : Set Environment Variables
41
44
run : |
42
45
TRIGGERING_SHA=${GITHUB_PULL_REQUEST_SHA:-$GITHUB_SHA}
46
49
echo "DEFAULT_BRANCH=${DEFAULT_BRANCH}" >> $GITHUB_ENV
47
50
echo "DEFAULT_BRANCH_REF=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV
48
51
echo "DEFAULT_BRANCH=$DEFAULT_BRANCH"
52
+ echo "IMAGE=ghcr.io/${{ github.repository_owner }}/manubot" >> $GITHUB_ENV
49
53
- name : Cache
50
54
uses : actions/cache@v1
51
55
with :
67
71
bash ci/install-spellcheck.sh
68
72
fi
69
73
- name : Build Manuscript
70
- shell : bash --login {0}
71
- run : bash build/build.sh
74
+ run : |
75
+ docker run \
76
+ --workdir /manuscript \
77
+ --mount "type=bind,source=$(pwd),target=/manuscript" \
78
+ $IMAGE \
79
+ bash build/build.sh
72
80
- name : Upload Artifacts
73
81
uses : actions/upload-artifact@v1
74
82
with :
You can’t perform that action at this time.
0 commit comments