From 40fad08360adf64d2f6b0ffd676b156868e38798 Mon Sep 17 00:00:00 2001 From: thehack904 <35552907+thehack904@users.noreply.github.com> Date: Sat, 11 Oct 2025 19:33:09 -0500 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c9a6979..14d0724 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -40,21 +40,37 @@ jobs: - name: 🏗️ Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: 🧱 Build and Push Docker image to GHCR + # 1️⃣ Multi-arch build & push to GHCR + - name: 🧱 Build and Push multi-arch image to GHCR uses: docker/build-push-action@v6 with: context: . push: true - load: true # 👈 adds this line to keep a local copy + platforms: linux/amd64,linux/arm64 tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:${{ github.ref_name }} - platforms: linux/amd64,linux/arm64 labels: | org.opencontainers.image.source=${{ github.repositoryUrl }} org.opencontainers.image.description=RetroIPTVGuide Flask + SQLite Web App org.opencontainers.image.licenses=CC-BY-NC-SA-4.0 + # 2️⃣ Single-arch (amd64) build for Docker Hub + - name: 🧱 Build and Push single-arch image to Docker Hub + uses: docker/build-push-action@v6 + with: + context: . + push: true + platforms: linux/amd64 + tags: | + thehack904/retroiptvguide:latest + thehack904/retroiptvguide:${{ github.ref_name }} + labels: | + org.opencontainers.image.source=${{ github.repositoryUrl }} + org.opencontainers.image.description=RetroIPTVGuide Flask + SQLite Web App + org.opencontainers.image.licenses=CC-BY-NC-SA-4.0 + + - name: 🧹 Cleanup local images run: docker image prune -af || true