From cbaf435b5aa282a74718589c9ebc1007c98a96fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alonzo?= <5524124+aalonzolu@users.noreply.github.com> Date: Sat, 10 Jan 2026 01:55:55 +0000 Subject: [PATCH 1/4] ARM Support --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50109b76d..3cb1b20a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v2 - uses: docker/login-action@v2 with: @@ -37,7 +38,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max target: ci - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 test: name: Test Suite @@ -103,7 +104,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max target: full - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 build-args: | VERSION=${{ steps.info.outputs.version }} BRANCH=${{ steps.info.outputs.branch }} @@ -133,4 +134,4 @@ jobs: target: full build-args: | VERSION=${{ needs.release-please.outputs.version }} - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 From 6c33a679940427036cbc22b48b0ab16e5b97ebd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alonzo?= <5524124+aalonzolu@users.noreply.github.com> Date: Sat, 10 Jan 2026 02:38:06 +0000 Subject: [PATCH 2/4] Fix CI git username --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cb1b20a7..0c3fcee47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - uses: docker/build-push-action@v4 with: push: true - tags: ghcr.io/postalserver/postal:ci-${{ github.sha }} + tags: ghcr.io/${{ github.repository_owner }}/postal:ci-${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max target: ci @@ -55,10 +55,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - run: docker compose pull env: - POSTAL_IMAGE: ghcr.io/postalserver/postal:ci-${{ github.sha }} + POSTAL_IMAGE: ghcr.io/${{ github.repository_owner }}/postal:ci-${{ github.sha }} - run: docker compose run postal sh -c 'bundle exec rspec' env: - POSTAL_IMAGE: ghcr.io/postalserver/postal:ci-${{ github.sha }} + POSTAL_IMAGE: ghcr.io/${{ github.repository_owner }}/postal:ci-${{ github.sha }} release-branch: name: Release (branch) @@ -81,7 +81,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - id: info run: | - IMAGE=ghcr.io/postalserver/postal + IMAGE=ghcr.io/${{ github.repository_owner }}/postal REF="${GITHUB_REF#refs/heads/}" if [ -z "$REF" ]; then exit 1; fi @@ -127,8 +127,8 @@ jobs: with: push: true tags: | - ghcr.io/postalserver/postal:stable - ghcr.io/postalserver/postal:${{ needs.release-please.outputs.version }} + ghcr.io/${{ github.repository_owner }}/postal:stable + ghcr.io/${{ github.repository_owner }}/postal:${{ needs.release-please.outputs.version }} cache-from: type=gha cache-to: type=gha,mode=max target: full From 4b73d2cee3ed777ae1480a44b41d59b3d051e688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alonzo?= <5524124+aalonzolu@users.noreply.github.com> Date: Sun, 11 Jan 2026 23:39:45 +0000 Subject: [PATCH 3/4] Fix release branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c3fcee47..078c7f435 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: REF="${GITHUB_REF#refs/heads/}" if [ -z "$REF" ]; then exit 1; fi - VER="$(git describe --tags 2>/dev/null)" + VER="$(git describe --tags 2>/dev/null || echo 'dev')" echo "version=${VER}" >> "$GITHUB_OUTPUT" echo "branch=${REF}" >> "$GITHUB_OUTPUT" From 796eadc6cd1e27885b5292de152991dc0c6e6dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alonzo?= <5524124+aalonzolu@users.noreply.github.com> Date: Sun, 11 Jan 2026 23:41:57 +0000 Subject: [PATCH 4/4] Fix release branch --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 078c7f435..2d7bf40d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,9 @@ jobs: REF="${GITHUB_REF#refs/heads/}" if [ -z "$REF" ]; then exit 1; fi + # Sanitize branch name for Docker tags (replace / with -) + SAFE_REF="${REF//\//-}" + VER="$(git describe --tags 2>/dev/null || echo 'dev')" echo "version=${VER}" >> "$GITHUB_OUTPUT" echo "branch=${REF}" >> "$GITHUB_OUTPUT" @@ -94,7 +97,7 @@ jobs: if [[ "$REF" == "main" ]]; then echo "${IMAGE}:latest" >> "$GITHUB_OUTPUT" else - echo "${IMAGE}:branch-${REF}" >> "$GITHUB_OUTPUT" + echo "${IMAGE}:branch-${SAFE_REF}" >> "$GITHUB_OUTPUT" fi echo 'EOF' >> "$GITHUB_OUTPUT" - uses: docker/build-push-action@v4