mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 22:10:12 +09:00
feat: update docker-ci workflow - arm64 support
This commit is contained in:
parent
bb0d1ab4ff
commit
c4d330947d
14
.github/workflows/docker-ci.yaml
vendored
14
.github/workflows/docker-ci.yaml
vendored
@ -19,8 +19,14 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build the Docker image
|
- name: Set up Docker Buildx
|
||||||
run: docker build . --file Dockerfile --tag programzmh/chatnio:latest
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Push to DockerHub
|
- name: Build and push Docker images
|
||||||
run: docker push programzmh/chatnio:latest
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: programzmh/chatnio:latest
|
||||||
|
@ -9,7 +9,7 @@ COPY . .
|
|||||||
|
|
||||||
# Set go proxy to https://goproxy.cn (open for vps in China Mainland)
|
# Set go proxy to https://goproxy.cn (open for vps in China Mainland)
|
||||||
# RUN go env -w GOPROXY=https://goproxy.cn,direct
|
# RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
ENV GOOS=linux GOARCH=amd64 GO111MODULE=on CGO_ENABLED=1
|
ENV GOOS=linux GO111MODULE=on CGO_ENABLED=1
|
||||||
|
|
||||||
# Install dependencies for cgo
|
# Install dependencies for cgo
|
||||||
RUN apk add --no-cache gcc musl-dev
|
RUN apk add --no-cache gcc musl-dev
|
||||||
|
Loading…
Reference in New Issue
Block a user