ci: mirror image pushes to ghcr.io/shadowdao (#3)
This commit is contained in:
@@ -34,6 +34,15 @@ jobs:
|
|||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
|
# Mirror to GitHub Container Registry — see build-push.yaml for the
|
||||||
|
# secret/username convention.
|
||||||
|
- name: Login to GHCR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: shadowdao
|
||||||
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
|
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -42,3 +51,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
repo.anhonesthost.net/cloud-hosting-platform/coraza-spoa:latest
|
repo.anhonesthost.net/cloud-hosting-platform/coraza-spoa:latest
|
||||||
|
ghcr.io/shadowdao/coraza-spoa:latest
|
||||||
|
|||||||
@@ -24,7 +24,18 @@ jobs:
|
|||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
|
# Second push target so the image is also available from GitHub Container
|
||||||
|
# Registry under the user's account. The PAT only needs write:packages
|
||||||
|
# (and read:packages if the package is private). Stored in Gitea as
|
||||||
|
# secrets.GHCR_TOKEN; username is the literal GitHub login.
|
||||||
|
- name: Login to GHCR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: shadowdao
|
||||||
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
|
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -32,3 +43,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
repo.anhonesthost.net/cloud-hosting-platform/haproxy-manager-base:latest
|
repo.anhonesthost.net/cloud-hosting-platform/haproxy-manager-base:latest
|
||||||
|
ghcr.io/shadowdao/haproxy-manager-base:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user