ci: just throw all the arch-specific images into generic repos

This commit is contained in:
Daniel Wolf 2024-03-31 19:28:28 -04:00
parent 87c38efcff
commit a338ccc34c
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 32 additions and 52 deletions

View File

@ -25,11 +25,6 @@ jobs:
registry: code.nephatrine.net
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGER_TOKEN }}
- name: Docker Login (Pull Auth)
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build & Push (Master)
uses: https://github.com/docker/build-push-action@v5
if: gitea.ref_name == 'master' || gitea.ref_name == ''
@ -40,9 +35,9 @@ jobs:
pull: true
push: true
file: Dockerfile
tags: code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest-cache
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest-cache,mode=max
tags: code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/amd64-cache:nxb-cross-freebsd-latest
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/amd64-cache:nxb-cross-freebsd-latest,mode=max
- name: Build & Push (Branch)
if: gitea.ref_name != 'master' && gitea.ref_name != ''
run: |
@ -68,9 +63,9 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}
- name: Tag & Push
run: |
docker pull code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest --platform linux/amd64
docker tag code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest nephatrine/amd64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest
docker pull code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest --platform linux/amd64
docker tag code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest nephatrine/amd64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest
docker push nephatrine/amd64:nxb-cross-freebsd-latest
docker rmi nephatrine/amd64:nxb-cross-freebsd-latest
build_latest_i386:
@ -89,11 +84,6 @@ jobs:
registry: code.nephatrine.net
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGER_TOKEN }}
- name: Docker Login (Pull Auth)
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build & Push (Master)
uses: https://github.com/docker/build-push-action@v5
if: gitea.ref_name == 'master' || gitea.ref_name == ''
@ -104,9 +94,9 @@ jobs:
pull: true
push: true
file: Dockerfile
tags: code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest-cache
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest-cache,mode=max
tags: code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/i386-cache:nxb-cross-freebsd-latest
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/i386-cache:nxb-cross-freebsd-latest,mode=max
- name: Build & Push (Branch)
if: gitea.ref_name != 'master' && gitea.ref_name != ''
run: |
@ -132,9 +122,9 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}
- name: Tag & Push
run: |
docker pull code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest --platform linux/386
docker tag code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest nephatrine/ia32:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest
docker pull code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest --platform linux/386
docker tag code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest nephatrine/ia32:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest
docker push nephatrine/ia32:nxb-cross-freebsd-latest
docker rmi nephatrine/ia32:nxb-cross-freebsd-latest
build_latest_arm64:
@ -153,11 +143,6 @@ jobs:
registry: code.nephatrine.net
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGER_TOKEN }}
- name: Docker Login (Pull Auth)
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build & Push (Master)
uses: https://github.com/docker/build-push-action@v5
if: gitea.ref_name == 'master' || gitea.ref_name == ''
@ -168,9 +153,9 @@ jobs:
pull: true
push: true
file: Dockerfile
tags: code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest-cache
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest-cache,mode=max
tags: code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/arm64-cache:nxb-cross-freebsd-latest
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/arm64-cache:nxb-cross-freebsd-latest,mode=max
- name: Build & Push (Branch)
if: gitea.ref_name != 'master' && gitea.ref_name != ''
run: |
@ -196,9 +181,9 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}
- name: Tag & Push
run: |
docker pull code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest --platform linux/arm64/v8
docker tag code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest nephatrine/arm64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest
docker pull code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest --platform linux/arm64/v8
docker tag code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest nephatrine/arm64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest
docker push nephatrine/arm64:nxb-cross-freebsd-latest
docker rmi nephatrine/arm64:nxb-cross-freebsd-latest
build_latest_riscv64:
@ -217,11 +202,6 @@ jobs:
registry: code.nephatrine.net
username: ${{ gitea.actor }}
password: ${{ secrets.PACKAGER_TOKEN }}
- name: Docker Login (Pull Auth)
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build & Push (Master)
uses: https://github.com/docker/build-push-action@v5
if: gitea.ref_name == 'master' || gitea.ref_name == ''
@ -232,9 +212,9 @@ jobs:
pull: true
push: true
file: Dockerfile
tags: code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest-cache
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest-cache,mode=max
tags: code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest
cache-from: type=registry,ref=code.nephatrine.net/nephnet/riscv64-cache:nxb-cross-freebsd-latest
cache-to: type=registry,image-manifest=true,oci-mediatypes=true,ref=code.nephatrine.net/nephnet/riscv64-cache:nxb-cross-freebsd-latest,mode=max
- name: Build & Push (Branch)
if: gitea.ref_name != 'master' && gitea.ref_name != ''
run: |
@ -260,9 +240,9 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}
- name: Tag & Push
run: |
docker pull code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest --platform linux/riscv64
docker tag code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest nephatrine/riscv64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest
docker pull code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest --platform linux/riscv64
docker tag code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest nephatrine/riscv64:nxb-cross-freebsd-latest
docker rmi code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest
docker push nephatrine/riscv64:nxb-cross-freebsd-latest
docker rmi nephatrine/riscv64:nxb-cross-freebsd-latest
build_latest:
@ -279,12 +259,12 @@ jobs:
password: ${{ secrets.PACKAGER_TOKEN }}
- name: Docker Manifest
run: |
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:14.0 --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:14 --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-amd64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-i386:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-arm64:latest --amend code.nephatrine.net/nephnet/nxb-cross-freebsd-riscv64:latest
docker manifest push --purge code.nephatrine.net/nephnet/nxb-cross-freebsd:latest
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:14.0 --amend code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:14 --amend code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest
docker manifest create code.nephatrine.net/nephnet/nxb-cross-freebsd:latest --amend code.nephatrine.net/nephnet/amd64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/i386:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/arm64:nxb-cross-freebsd-latest --amend code.nephatrine.net/nephnet/riscv64:nxb-cross-freebsd-latest
docker manifest push --purge code.nephatrine.net/nephnet/nxb-cross-freebsd:14.0
docker manifest push --purge code.nephatrine.net/nephnet/nxb-cross-freebsd:14
docker manifest push --purge code.nephatrine.net/nephnet/nxb-cross-freebsd:latest
- name: Notify Discord
uses: https://github.com/sarisia/actions-status-discord@v1
if: failure()
@ -303,14 +283,14 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}
- name: Docker Manifest
run: |
docker manifest create nephatrine/nxbuilder:debian-cross-freebsd --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest create nephatrine/nxb-cross-freebsd:latest --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest create nephatrine/nxb-cross-freebsd:14.0 --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest create nephatrine/nxb-cross-freebsd:14 --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest push --purge nephatrine/nxbuilder:debian-cross-freebsd
docker manifest push --purge nephatrine/nxb-cross-freebsd:latest
docker manifest create nephatrine/nxb-cross-freebsd:latest --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest create nephatrine/nxbuilder:debian-cross-freebsd --amend nephatrine/amd64:nxb-cross-freebsd-latest --amend nephatrine/ia32:nxb-cross-freebsd-latest --amend nephatrine/arm64:nxb-cross-freebsd-latest --amend nephatrine/riscv64:nxb-cross-freebsd-latest
docker manifest push --purge nephatrine/nxb-cross-freebsd:14.0
docker manifest push --purge nephatrine/nxb-cross-freebsd:14
docker manifest push --purge nephatrine/nxb-cross-freebsd:latest
docker manifest push --purge nephatrine/nxbuilder:debian-cross-freebsd
- name: Notify Discord
if: gitea.event_name != 'schedule'
uses: https://github.com/sarisia/actions-status-discord@v1