mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-09 14:58:48 +08:00
feat: add Apple Silicon (arm64) support for Docker image. #57
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
|
||||
# Create Docker Image
|
||||
- name: Docker login
|
||||
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
|
||||
@@ -89,22 +89,14 @@ jobs:
|
||||
# working-directory: website
|
||||
# run: docker image build -t wxmp .
|
||||
|
||||
- name: Build and push multi-platform image (latest)
|
||||
- name: Build and push multi-platform image
|
||||
working-directory: website
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t wxmp:latest \
|
||||
-t wxmp \
|
||||
--push .
|
||||
|
||||
- name: Build and push multi-platform image (with tag)
|
||||
if: needs.build.outputs.successful
|
||||
working-directory: website
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t wxmp:${{ needs.build.outputs.version }} \
|
||||
--push .
|
||||
|
||||
- name: Tags & Push image (latest)
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user