From d462ded7f48a1b76f64ee6e14722dd46eba16ee5 Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Sun, 15 Oct 2023 06:47:19 +0000 Subject: [PATCH] chore(ci): publish slim and distrib image --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b55f49..9f81ada 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,10 +80,21 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - uses: docker/build-push-action@v2 + - name: Build and push Docker image (slim) + uses: docker/build-push-action@v2 with: context: . + target: slim platforms: linux/amd64,linux/arm64,linux/arm/v7 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - name: Build and push Docker image (distrib) + uses: docker/build-push-action@v2 + with: + context: . + target: distrib + platforms: linux/amd64,linux/arm64,linux/arm/v7 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }}-distrib + labels: ${{ steps.meta.outputs.labels }}