Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add actions to sync dockerhub description #454

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,32 @@ on:
types: [created] # This will only run on new releases

jobs:
docker_hub_description:
name: Docker Hub description
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
README.en.md
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ vars.DOCKERHUB_NAMESPACE }}/chatgpt-web
# Description length should be no longer than 100 characters.
short-description: A third-party ChatGPT Web UI page, through the official OpenAI completion API.
readme-filepath: README.en.md
enable-url-completion: true

build_docker:
name: Build docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Print out all environment variables
- run: |
Expand All @@ -38,8 +58,8 @@ jobs:
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-web:${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-web:latest
chatgptweb/chatgpt-web:${{ github.ref_name }}
chatgptweb/chatgpt-web:latest
${{ vars.DOCKERHUB_NAMESPACE }}/chatgpt-web:${{ github.ref_name }}
${{ vars.DOCKERHUB_NAMESPACE }}/chatgpt-web:latest
build-args: |
GIT_COMMIT_HASH=${{ github.sha }}
RELEASE_VERSION=${{ github.ref_name }}
7 changes: 2 additions & 5 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# ChatGPT Web

<div style="font-size: 1.5rem;">
<a href="./README.md">中文</a> |
<a href="./README.en.md">English</a>
</div>
</br>
[中文](./README.md) | [English](./README.en.md)


## Introduction
> **This project is forked from [Chanzhaoyu/chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web), some unique features have been added:**
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# ChatGPT Web

<div style="font-size: 1.5rem;">
<a href="./README.md">中文</a> |
<a href="./README.en.md">English</a>
</div>
</br>
[中文](./README.md) | [English](./README.en.md)


## 说明
> **此项目 Fork 自 [Chanzhaoyu/chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web), 新增了部分特色功能:**
Expand Down
Loading