Skip to content

Commit 3ae3901

Browse files
committed
Add support for arm64
1 parent 00fc134 commit 3ae3901

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,25 @@ jobs:
2929
- name: Checkout code
3030
uses: actions/checkout@v4
3131

32+
- name: Set up QEMU
33+
uses: docker/setup-qemu-action@v3
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
3238
- name: Log in to DockerHub
3339
uses: docker/login-action@v3
3440
with:
3541
username: ${{ secrets.DOCKER_USERNAME }}
3642
password: ${{ secrets.DOCKER_PASSWORD }}
3743

38-
- name: Build and Push Docker Image
44+
- name: Build and Push Multi-Platform Docker Image
3945
run: |
4046
VERSION=${{ github.ref_name }}
41-
# Remove leading 'v' if it exists
42-
VERSION=${VERSION#v}
43-
44-
docker build -t amro045/outline-admin:$VERSION .
45-
docker push amro045/outline-admin:$VERSION
46-
47-
docker tag amro045/outline-admin:$VERSION amro045/outline-admin:latest
48-
docker push amro045/outline-admin:latest
47+
VERSION=${VERSION#v} # Remove leading 'v' if it exists
48+
49+
docker buildx build \
50+
--platform linux/amd64,linux/arm64 \
51+
--tag amro045/outline-admin:$VERSION \
52+
--tag amro045/outline-admin:latest \
53+
--push .

0 commit comments

Comments
 (0)