Skip to content

Commit

Permalink
Update: modify docker registry as private registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
声泉 committed Apr 29, 2024
1 parent 613b5c8 commit 05304f0
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,39 @@ on:
workflow_dispatch:
release:
types: [published]
push:
branches:
- main
- dev
- ^feat

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:
-
name: Check out the repo
uses: actions/checkout@v3
-
name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
registry: $DOCKER_REGISTRY

-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: yidadaa/chatgpt-next-web
images: $DOCKER_REGISTRY/tadsec/base/chatgpt-next-web
tags: |
type=raw,value=latest
type=ref,event=tag
Expand Down

0 comments on commit 05304f0

Please sign in to comment.