Skip to content

Commit

Permalink
✨ Push image to tcr (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
tosone authored Jun 11, 2024
1 parent db3ea45 commit e68d12d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
analyze:
name: Analyze (${{ matrix.language }})
name: analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Aliyun acr
- name: Login to tencent tcr
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
docker.io/tosone/sigma
registry.cn-hangzhou.aliyuncs.com/go-sigma/sigma
ccr.ccs.tencentyun.com/go-sigma/sigma
tags: |
type=ref,event=pr
type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }}
Expand Down Expand Up @@ -139,13 +139,13 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Aliyun acr
- name: Login to tencent tcr
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
docker.io/tosone/sigma
registry.cn-hangzhou.aliyuncs.com/go-sigma/sigma
ccr.ccs.tencentyun.com/go-sigma/sigma
flavor: |
latest=false
tags: |
Expand Down Expand Up @@ -239,13 +239,13 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Aliyun acr
- name: Login to tencent tcr
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
docker.io/tosone/sigma
registry.cn-hangzhou.aliyuncs.com/go-sigma/sigma
ccr.ccs.tencentyun.com/go-sigma/sigma
flavor: |
latest=false
tags: |
Expand Down Expand Up @@ -337,13 +337,13 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Aliyun acr
- name: Login to tencent tcr
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
docker.io/tosone/sigma
registry.cn-hangzhou.aliyuncs.com/go-sigma/sigma
ccr.ccs.tencentyun.com/go-sigma/sigma
flavor: |
latest=false
tags: |
Expand Down

0 comments on commit e68d12d

Please sign in to comment.