Skip to content

Commit 1e3e280

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

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/manubot.yaml

+13-5
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ jobs:
2929
registry: ghcr.io
3030
username: ${{ github.actor }}
3131
password: ${{ secrets.GITHUB_TOKEN }}
32-
- name: Build and push
32+
- name: Docker build and push
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
41+
- name: Show Docker images
42+
run: docker images --all
4043
- name: Set Environment Variables
4144
run: |
4245
TRIGGERING_SHA=${GITHUB_PULL_REQUEST_SHA:-$GITHUB_SHA}
@@ -46,6 +49,7 @@ jobs:
4649
echo "DEFAULT_BRANCH=${DEFAULT_BRANCH}" >> $GITHUB_ENV
4750
echo "DEFAULT_BRANCH_REF=refs/heads/$DEFAULT_BRANCH" >> $GITHUB_ENV
4851
echo "DEFAULT_BRANCH=$DEFAULT_BRANCH"
52+
echo "IMAGE=ghcr.io/${{ github.repository_owner }}/manubot" >> $GITHUB_ENV
4953
- name: Cache
5054
uses: actions/cache@v1
5155
with:
@@ -67,8 +71,12 @@ jobs:
6771
bash ci/install-spellcheck.sh
6872
fi
6973
- 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
7280
- name: Upload Artifacts
7381
uses: actions/upload-artifact@v1
7482
with:

0 commit comments

Comments
 (0)