Skip to content

Commit 11e6ccd

Browse files
committed
skip docker push
[skip_ci]
1 parent 1eb3194 commit 11e6ccd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/manubot.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ jobs:
3333
id: docker_build
3434
uses: docker/build-push-action@v2
3535
with:
36-
push: true
36+
push: false
3737
context: build
3838
tags: |
39-
${{ github.repository_owner }}/manubot:latest
39+
ghcr.io/${{ github.repository_owner }}/manubot:latest
40+
cache-to: type=inline
4041
- name: Set Environment Variables
4142
run: |
4243
TRIGGERING_SHA=${GITHUB_PULL_REQUEST_SHA:-$GITHUB_SHA}
@@ -46,6 +47,7 @@ jobs:
4647
echo "DEFAULT_BRANCH=${DEFAULT_BRANCH}" >> $GITHUB_ENV
4748
echo "DEFAULT_BRANCH_REF=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV
4849
echo "DEFAULT_BRANCH=$DEFAULT_BRANCH"
50+
echo "IMAGE=ghcr.io/${{ github.repository_owner }}/manubot" >> $GITHUB_ENV
4951
- name: Cache
5052
uses: actions/cache@v1
5153
with:
@@ -67,8 +69,12 @@ jobs:
6769
bash ci/install-spellcheck.sh
6870
fi
6971
- name: Build Manuscript
70-
shell: bash --login {0}
71-
run: bash build/build.sh
72+
run: |
73+
docker run \
74+
--workdir /manuscript \
75+
--mount "type=bind,source=$(pwd),target=/manuscript" \
76+
$IMAGE \
77+
bash build/build.sh
7278
- name: Upload Artifacts
7379
uses: actions/upload-artifact@v1
7480
with:

0 commit comments

Comments
 (0)