ci: add Gitea container registry push (alpha)
This commit is contained in:
@@ -55,6 +55,13 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
|
with:
|
||||||
|
registry: git.nomsg.cn
|
||||||
|
username: chaos
|
||||||
|
password: ${{ secrets.CONTAINER_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to GHCR
|
- name: Log in to GHCR
|
||||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
with:
|
with:
|
||||||
@@ -69,6 +76,7 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
calciumion/new-api
|
calciumion/new-api
|
||||||
ghcr.io/${{ env.GHCR_REPOSITORY }}
|
ghcr.io/${{ env.GHCR_REPOSITORY }}
|
||||||
|
git.nomsg.cn/chaos/chaos-api
|
||||||
|
|
||||||
- name: Build & push single-arch (to both registries)
|
- name: Build & push single-arch (to both registries)
|
||||||
id: build
|
id: build
|
||||||
@@ -82,6 +90,8 @@ jobs:
|
|||||||
calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
||||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:alpha-${{ matrix.arch }}
|
ghcr.io/${{ env.GHCR_REPOSITORY }}:alpha-${{ matrix.arch }}
|
||||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
||||||
|
git.nomsg.cn/chaos/chaos-api:alpha-${{ matrix.arch }}
|
||||||
|
git.nomsg.cn/chaos/chaos-api:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
@@ -134,6 +144,13 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
|
with:
|
||||||
|
registry: git.nomsg.cn
|
||||||
|
username: chaos
|
||||||
|
password: ${{ secrets.CONTAINER_TOKEN }}
|
||||||
|
|
||||||
- name: Create & push manifest (Docker Hub - alpha)
|
- name: Create & push manifest (Docker Hub - alpha)
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create \
|
docker buildx imagetools create \
|
||||||
|
|||||||
Reference in New Issue
Block a user