Просмотр исходного кода

CI: limit -dev docker image to amd64 to speed up the pipeline (#2090)

mmetc 2 лет назад
Родитель
Сommit
dd76c07293
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      .github/workflows/publish_docker-image_on_master.yml

+ 6 - 4
.github/workflows/publish_docker-image_on_master.yml

@@ -1,6 +1,5 @@
 name: Publish Docker image on Push to Master
 
-
 on:
   push:
     branches: [ master ]
@@ -21,10 +20,12 @@ jobs:
     name: Push Docker image to Docker Hub
     runs-on: ubuntu-latest
     steps:
+
       - name: Check out the repo
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
+
       - name: Prepare
         id: prep
         run: |
@@ -34,8 +35,7 @@ jobs:
           TAGS="${DOCKER_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
           echo "tags=${TAGS}" >> $GITHUB_OUTPUT
           echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
-      - name: Set up QEMU
-        uses: docker/setup-qemu-action@v2
+
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v2
         with:
@@ -61,8 +61,10 @@ jobs:
           file: ./Dockerfile
           push: ${{ github.event_name != 'pull_request' }}
           tags: ${{ steps.prep.outputs.tags }}
-          platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386
+          platforms: linux/amd64
           labels: |
             org.opencontainers.image.source=${{ github.event.repository.html_url }}
             org.opencontainers.image.created=${{ steps.prep.outputs.created }}
             org.opencontainers.image.revision=${{ github.sha }}
+          cache-from: type=gha
+          cache-to: type=gha,mode=min