多平台ci
This commit is contained in:
parent
dc1aafec8f
commit
b069674e91
46
.github/workflows/ci.yaml
vendored
46
.github/workflows/ci.yaml
vendored
@ -3,47 +3,21 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
|
||||||
#jobs:
|
|
||||||
# build-and-push:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - name: Build amd64 image
|
|
||||||
# run: |
|
|
||||||
# docker build --platform linux/amd64 -t registry.hub.docker.com/xiaomoinfo/wechatgpt-amd64:latest .
|
|
||||||
# - name: Push amd64 image
|
|
||||||
# run: |
|
|
||||||
# docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
|
||||||
# docker images
|
|
||||||
# docker push registry.hub.docker.com/xiaomoinfo/wechatgpt-amd64:latest
|
|
||||||
# - name: Build apple silicon image
|
|
||||||
# run: |
|
|
||||||
# docker build -t registry.hub.docker.com/xiaomoinfo/wechatgpt:latest .
|
|
||||||
# - name: Push apple silicon image
|
|
||||||
# run: |
|
|
||||||
# docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
|
||||||
# docker images
|
|
||||||
# docker push registry.hub.docker.com/xiaomoinfo/wechatgpt:latest
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - name: Set up QEMU
|
- name: Set up QEMU
|
||||||
# uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
# - name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
# - name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
# uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
manifest: ./manifest.yml
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
9
.github/workflows/manifest.yml
vendored
9
.github/workflows/manifest.yml
vendored
@ -1,9 +0,0 @@
|
|||||||
image: wechatgpt
|
|
||||||
architectures:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
- arm
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- amd64-latest
|
|
||||||
- arm64-latest
|
|
Loading…
x
Reference in New Issue
Block a user