ci: add Gitea container registry push (nightly)
This commit is contained in:
@@ -52,12 +52,20 @@ 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@v3
|
||||||
|
with:
|
||||||
|
registry: git.nomsg.cn
|
||||||
|
username: chaos
|
||||||
|
password: ${{ secrets.CONTAINER_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (labels)
|
- name: Extract metadata (labels)
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
calciumion/new-api
|
calciumion/new-api
|
||||||
|
git.nomsg.cn/chaos/chaos-api
|
||||||
|
|
||||||
- name: Build & push single-arch
|
- name: Build & push single-arch
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -68,6 +76,8 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
calciumion/new-api:nightly-${{ matrix.arch }}
|
calciumion/new-api:nightly-${{ matrix.arch }}
|
||||||
calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }}
|
||||||
|
git.nomsg.cn/chaos/chaos-api:nightly-${{ 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
|
||||||
@@ -98,6 +108,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@v3
|
||||||
|
with:
|
||||||
|
registry: git.nomsg.cn
|
||||||
|
username: chaos
|
||||||
|
password: ${{ secrets.CONTAINER_TOKEN }}
|
||||||
|
|
||||||
- name: Create & push manifest (Docker Hub - nightly)
|
- name: Create & push manifest (Docker Hub - nightly)
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create \
|
docker buildx imagetools create \
|
||||||
|
|||||||
Reference in New Issue
Block a user