File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments