Skip to content

Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next… #211

Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…

Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next… #211

Workflow file for this run

name: Publish Docker image
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- v*
paths-ignore:
- "*.md"
- LICENSE
- "docs/**"
jobs:
build_docker:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/chat-with-hal
tags: |
type=raw,value=latest
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}