mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed Docker image build
This commit is contained in:
parent
0dcb2c9ff5
commit
f918ab3eff
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -23,7 +23,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- fix/docker-build
|
|
||||||
pull_request:
|
pull_request:
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
@ -107,14 +106,14 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
#if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
#if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@ -154,7 +153,7 @@ jobs:
|
|||||||
docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} build
|
docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} build
|
||||||
|
|
||||||
- name: Set platforms
|
- name: Set platforms
|
||||||
#if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: |
|
run: |
|
||||||
echo "PLATFORMS=linux/amd64,linux/arm64,linux/arm/v7" >> $GITHUB_ENV
|
echo "PLATFORMS=linux/amd64,linux/arm64,linux/arm/v7" >> $GITHUB_ENV
|
||||||
|
|
||||||
@ -168,12 +167,12 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Check manifest
|
- name: Check manifest
|
||||||
#if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
docker buildx imagetools inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
#if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
docker pull ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
||||||
docker image inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
docker image inspect ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }}
|
||||||
|
Loading…
Reference in New Issue
Block a user