Skip to content

Commit 3216a63

Browse files
committed
replace emulation with native arm
1 parent 004cf3c commit 3216a63

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.github/workflows/build-containers-enterprise.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
include:
2626
- runnertags: ubuntu-latest
2727
arch: amd64
28-
- runnertags: ubuntu-latest
28+
- runnertags: ubuntu-24.04-arm
2929
arch: arm64
3030

3131
runs-on: ${{ matrix.runnertags }}
@@ -37,10 +37,6 @@ jobs:
3737
submodules: 'true'
3838
token: ${{ secrets.PAT_TOKEN }}
3939

40-
- name: Set up QEMU (For ARM64 Builds)
41-
if: matrix.arch == 'arm64'
42-
uses: docker/setup-qemu-action@v3
43-
4440
- name: Set up Docker Buildx
4541
uses: docker/setup-buildx-action@v3
4642

.github/workflows/build-containers.yml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,15 @@ jobs:
2525
include:
2626
- runnertags: ubuntu-latest
2727
arch: amd64
28-
- runnertags: ubuntu-latest
28+
- runnertags: ubuntu-24.04-arm
2929
arch: arm64
30-
3130
runs-on: ${{ matrix.runnertags }}
3231
steps:
3332
- name: Checkout
3433
uses: actions/checkout@v4
3534
with:
3635
fetch-depth: 0
3736

38-
- name: Set up QEMU (For ARM64 Builds)
39-
if: matrix.arch == 'arm64'
40-
uses: docker/setup-qemu-action@v3
41-
4237
- name: Set up Docker Buildx
4338
uses: docker/setup-buildx-action@v3
4439

@@ -56,10 +51,10 @@ jobs:
5651
run: |
5752
docker buildx build --platform linux/${{ matrix.arch }} \
5853
-f Dockerfile.dev \
59-
-t ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }} \
54+
-t ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }} \
6055
--build-arg NEXT_PUBLIC_VERSION=${{ env.NEXT_PUBLIC_VERSION }} \
6156
--provenance=false --sbom=false \
62-
--output "type=registry,name=ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }}" .
57+
--output "type=registry,name=ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-${{ matrix.arch }}" .
6358
6459
build-container-manifest:
6560
needs: [build-containers, build-containers-common]
@@ -78,29 +73,29 @@ jobs:
7873
run: |
7974
# Verify the architecture images
8075
echo "Verifying AMD64 image:"
81-
docker buildx imagetools inspect ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-amd64
76+
docker buildx imagetools inspect ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-amd64
8277
8378
echo "Verifying ARM64 image:"
84-
docker buildx imagetools inspect ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-arm64
79+
docker buildx imagetools inspect ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-arm64
8580
8681
# Try to remove any existing manifests first
87-
docker manifest rm ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }} || true
88-
docker manifest rm ghcr.io/gitroomhq/postiz-app:latest || true
82+
docker manifest rm ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }} || true
83+
docker manifest rm ghcr.io/roshangm1/postiz-app:latest || true
8984
9085
# Create and push the version-specific manifest
91-
docker manifest create ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }} \
92-
--amend ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-amd64 \
93-
--amend ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-arm64
86+
docker manifest create ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }} \
87+
--amend ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-amd64 \
88+
--amend ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-arm64
9489
95-
docker manifest push ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}
90+
docker manifest push ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}
9691
9792
# Create and push the latest manifest
98-
docker manifest create ghcr.io/gitroomhq/postiz-app:latest \
99-
--amend ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-amd64 \
100-
--amend ghcr.io/gitroomhq/postiz-app:${{ env.CONTAINERVER }}-arm64
93+
docker manifest create ghcr.io/roshangm1/postiz-app:latest \
94+
--amend ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-amd64 \
95+
--amend ghcr.io/roshangm1/postiz-app:${{ env.CONTAINERVER }}-arm64
10196
102-
docker manifest push ghcr.io/gitroomhq/postiz-app:latest
97+
docker manifest push ghcr.io/roshangm1/postiz-app:latest
10398
10499
- name: Verify Manifest
105100
run: |
106-
docker manifest inspect ghcr.io/gitroomhq/postiz-app:latest
101+
docker manifest inspect ghcr.io/roshangm1/postiz-app:latest

0 commit comments

Comments
 (0)