Skip to content

Commit

Permalink
chore: add judger agent github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Apr 10, 2024
1 parent e769d42 commit ef719eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/judger-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to TCR
uses: docker/login-action@v2
with:
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_TOKEN }}
- name: Build and Push Image
uses: docker/build-push-action@v3
with:
Expand All @@ -34,3 +40,5 @@ jobs:
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/onlinejudge3-judger-agent:1
${{ secrets.DOCKERHUB_USERNAME }}/onlinejudge3-judger-agent:latest
ccr.ccs.tencentyun.com/${{ secrets.TCR_NSP }}/onlinejudge3-judger-agent:1
ccr.ccs.tencentyun.com/${{ secrets.TCR_NSP }}/onlinejudge3-judger-agent:latest

0 comments on commit ef719eb

Please sign in to comment.