From 1deba421a9196853e560e600e25d12b695b6a645 Mon Sep 17 00:00:00 2001 From: Shane Israel Date: Tue, 2 Dec 2025 14:58:24 -0700 Subject: [PATCH] seperate arm into own workflow --- .../workflows/docker-publish-main-arm.yaml | 52 +++++++++++++++++++ .github/workflows/docker-publish-main.yml | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-publish-main-arm.yaml diff --git a/.github/workflows/docker-publish-main-arm.yaml b/.github/workflows/docker-publish-main-arm.yaml new file mode 100644 index 00000000..ab5da776 --- /dev/null +++ b/.github/workflows/docker-publish-main-arm.yaml @@ -0,0 +1,52 @@ +name: Publish Main Image +on: + push: + paths: + - "app/**" + - "migrations/**" + - "Dockerfile" + - "entrypoint.sh" + tags: + - "v*" +jobs: + push_latest_to_registry: + name: Build & Push + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v1.6.0 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Log in to the GitHub Container registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GIT_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: | + shaneisrael/fireshare + + - name: Build and push Docker images + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/docker-publish-main.yml b/.github/workflows/docker-publish-main.yml index 4adcff9c..c216e9a6 100644 --- a/.github/workflows/docker-publish-main.yml +++ b/.github/workflows/docker-publish-main.yml @@ -46,7 +46,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}