Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Push image to tcr #371

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading