From fc5b36edfbf53decba4e75f238613f46eaddfddb Mon Sep 17 00:00:00 2001 From: norefice-github Date: Fri, 26 Apr 2024 11:37:53 -0500 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18c6f32..f28a6e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,12 +35,10 @@ jobs: run: | platform=${{ matrix.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - - name: Checkout repository uses: actions/checkout@v3 with: ref: ${{ env.SHA }} - - name: Extract Docker metadata id: meta uses: docker/metadata-action@v4 @@ -49,19 +47,15 @@ jobs: labels: | org.opencontainers.image.revision=${{ env.SHA }} com.docker.image.source.entrypoint=${{ env.DOCKERFILE_PATH }} - - name: Docker Setup QEMU uses: docker/setup-qemu-action@v3.0.0 - - name: Setup Docker buildx uses: docker/setup-buildx-action@v2 - - name: Log into DockerHub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push by digest id: build uses: docker/build-push-action@v5 @@ -87,35 +81,30 @@ jobs: needs: - build steps: - - - name: Download digests + - name: Download digests uses: actions/download-artifact@v4 with: path: /tmp/digests pattern: digests-* merge-multiple: true - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: Docker meta + - name: Docker meta id: meta uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }} - - + - name: Log into DockerHub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Create manifest list and push + - name: Create manifest list and push working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) - - - name: Inspect image + - name: Inspect image run: | docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${