add ci
This commit is contained in:
parent
6053c0d0be
commit
f5b02cd07d
26
.github/workflows/ci.yaml
vendored
Normal file
26
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 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 xiaomoinfo/wechatgpt-amd64:latest .
|
||||||
|
- name: Push amd64 image
|
||||||
|
run: |
|
||||||
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||||
|
docker push xiaomoinfo/wechatgpt-amd64:latest
|
||||||
|
- name: Build apple silicon image
|
||||||
|
run: |
|
||||||
|
docker build --platform linux/amd64 -t xiaomoinfo/wechatgpt:latest .
|
||||||
|
- name: Push apple silicon image
|
||||||
|
run: |
|
||||||
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||||
|
docker push xiaomoinfo/wechatgpt:latest
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user