Skip to content

Commit

Permalink
💚 Add ACR docker registry (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
tosone committed Feb 20, 2024
1 parent d00659e commit 07f273d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,20 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to ACR
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-zhangjiakou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
registry.cn-zhangjiakou.aliyuncs.com/tosone/sigma
tags: |
type=ref,event=pr
type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }}
Expand Down Expand Up @@ -96,12 +104,20 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to ACR
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-zhangjiakou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
registry.cn-zhangjiakou.aliyuncs.com/tosone/sigma
flavor: |
latest=false
tags: |
Expand Down Expand Up @@ -151,12 +167,20 @@ jobs:
registry: ghcr.io
username: tosone
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to ACR
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: registry.cn-zhangjiakou.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}-builder
registry.cn-zhangjiakou.aliyuncs.com/tosone/sigma-builder
tags: |
type=ref,event=pr
type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }}
Expand Down

0 comments on commit 07f273d

Please sign in to comment.