Skip to content

Commit 6d22f3d

Browse files
committed
Merge branch 'master' of github.com:squidfunk/mkdocs-material
2 parents a6a74a6 + 86f15eb commit 6d22f3d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: .github/workflows/build.yml

+20
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
- name: Checkout repository
100100
uses: actions/checkout@v3
101101

102+
- name: Set up QEMU
103+
uses: docker/setup-qemu-action@v2
104+
102105
- name: Set up Docker Buildx
103106
uses: docker/setup-buildx-action@v2
104107

@@ -145,10 +148,27 @@ jobs:
145148
docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} new .
146149
docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} build
147150
151+
- name: Set platforms
152+
if: github.event_name == 'release'
153+
run: |
154+
echo "PLATFORMS=linux/amd64,linux/arm64,linux/arm/v7" >> $GITHUB_ENV
155+
148156
- name: Publish Docker image
149157
uses: docker/build-push-action@v4
150158
with:
151159
context: .
160+
platforms: ${{ env.PLATFORMS }}
152161
push: ${{ github.event_name == 'release' }}
153162
tags: ${{ steps.meta.outputs.tags }}
154163
labels: ${{ steps.meta.outputs.labels }}
164+
165+
- name: Check manifest
166+
if: github.event_name == 'release'
167+
run: |
168+
docker buildx imagetools inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
169+
170+
- name: Inspect image
171+
if: github.event_name == 'release'
172+
run: |
173+
docker pull ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
174+
docker image inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)