break changes: change container registry to gitea
This commit is contained in:
@@ -11,15 +11,12 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: debian:latest
|
||||
- name: debian:trixie
|
||||
dockerfile: debian/Dockerfile
|
||||
tag: debian:latest
|
||||
- name: debian-trixie
|
||||
dockerfile: debian/Dockerfile
|
||||
tag: debian:trixie
|
||||
tags: ${{ gitea.server_url }}/cn/debian:trixie,${{ gitea.server_url }}/cn/debian:latest
|
||||
- name: debian:bookworm
|
||||
dockerfile: debian/bookworm.Dockerfile
|
||||
tag: debian:bookworm
|
||||
tags: ${{ gitea.server_url }}/cn/debian:bookworm
|
||||
|
||||
name: Build ${{ matrix.name }}
|
||||
|
||||
@@ -30,13 +27,16 @@ jobs:
|
||||
- name: Log in to Docker Hub
|
||||
uses: https://gitea.starryskymeow.cn/mirrors/docker-login-action@v4
|
||||
with:
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
registry: ${{ gitea.server_url }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
docker build --push \
|
||||
--platform=linux/amd64,linux/arm64 \
|
||||
-f ${{ matrix.dockerfile }} \
|
||||
-t ${{ vars.DOCKER_USERNAME }}/${{ matrix.tag }} \
|
||||
.
|
||||
uses: https://gitea.starryskymeow.cn/mirrors/docker-build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/arm/v7
|
||||
tags: ${{ matrix.tags }}
|
||||
Reference in New Issue
Block a user