Skip to content

Commit

Permalink
add docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Jan 31, 2024
1 parent e52a25a commit 821186c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker-image-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
# The version of Node.js that will be used
node-version: "20"

- uses: docker/login-action@v1
with:
registry: ghcr.io # 声明镜像源
username: ${{ github.actor }}
password: ${{ secrets.HUB_GITHUB_ACCESS_TOKEN }}

- uses: docker/login-action@v1
with:
registry: ${{ secrets.TC_DOCKER_HUB_ADDRESS }} # 声明镜像源
Expand All @@ -34,6 +40,11 @@ jobs:
- name: Build docker image
run:
docker buildx build --file Dockerfile --tag rulateday-api-client-uat:latest .
- name: create github packages docker hub tag
run: docker image tag rulateday-api-client-uat:latest ghcr.io/eiriksgata/rulateday-api-client-uat:latest
- name: github packages push
run: docker push ghcr.io/eiriksgata/rulateday-api-client-uat:latest

- name: create tencent docker hub tag
run: docker image tag rulateday-api-client-uat:latest ${{ secrets.TC_DOCKER_HUB_ADDRESS }}/rulateday/rulateday-api-client-uat:latest

Expand Down

0 comments on commit 821186c

Please sign in to comment.