From 6e13ca73c3470586e52e2e56d2612409912ccd95 Mon Sep 17 00:00:00 2001 From: Stefan Negru Date: Mon, 7 Aug 2023 11:49:06 +0300 Subject: [PATCH 1/2] refine filters clean containers --- .github/workflows/clean-containers.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index 1cb57b1..a0d3901 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -23,7 +23,7 @@ jobs: uses: snok/container-retention-policy@v2.1.1 with: image-names: ${{ env.REGISTRY }}/${{ env.REPO }} - filter-tags: sha-*,sha256:* + filter-tags: "sha-*", "sha256:*" cut-off: A week ago UTC account-type: org org-name: ${{ github.repository_owner }} From ff81947c5ac6eb532605094afaae186cb46d5b50 Mon Sep 17 00:00:00 2001 From: Stefan Negru Date: Mon, 7 Aug 2023 11:53:22 +0300 Subject: [PATCH 2/2] multi-platform build docker action --- .github/workflows/publish.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e064c5a..1cb19c1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,13 +16,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: downcase REPO name run: | echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} @@ -42,6 +48,7 @@ jobs: uses: docker/build-push-action@v4 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: |