Skip to content

Commit

Permalink
test: debug ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
声泉 committed Apr 29, 2024
1 parent 05304f0 commit 09084fc
Show file tree
Hide file tree
Showing 3 changed files with 6,213 additions and 13 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ name: Publish Docker image

on:
workflow_dispatch:
release:
types: [published]
push:
branches:
- main
- dev
- ^feat
- feat*

env:
DOCKER_REGISTRY: swr.cn-east-3.myhuaweicloud.com

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY: swr.cn-east-3.myhuaweicloud.com

steps:
-
Expand All @@ -27,16 +24,16 @@ jobs:
name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
registry: $DOCKER_REGISTRY
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ env.DOCKER_REGISTRY }}

-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: $DOCKER_REGISTRY/tadsec/base/chatgpt-next-web
images: ${{ env.DOCKER_REGISTRY }}/tadsec/base/chatgpt-next-web
tags: |
type=raw,value=latest
type=ref,event=tag
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ dev
*.key
*.key.pub

yarn.lock
package-lock.json
#yarn.lock
#package-lock.json
Loading

0 comments on commit 09084fc

Please sign in to comment.