streamline action steps
Build Container Image / build_amd64 (push) Successful in 1m31s
Details
Build Container Image / build_arm64 (push) Successful in 2m59s
Details
Build Container Image / build_manifest (push) Successful in 7s
Details
Build Container Image / publish_arm64 (push) Successful in 31s
Details
Build Container Image / publish_amd64 (push) Successful in 41s
Details
Build Container Image / publish_manifest (push) Successful in 20s
Details
Build Container Image / build_amd64 (push) Successful in 1m31s
Details
Build Container Image / build_arm64 (push) Successful in 2m59s
Details
Build Container Image / build_manifest (push) Successful in 7s
Details
Build Container Image / publish_arm64 (push) Successful in 31s
Details
Build Container Image / publish_amd64 (push) Successful in 41s
Details
Build Container Image / publish_manifest (push) Successful in 20s
Details
This commit is contained in:
parent
d32d704eb4
commit
9cc32b2f10
|
@ -2,9 +2,9 @@ name: Build Container Image
|
|||
run-name: ${{ gitea.actor }} pushed to ${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||
on: [push, workflow_call]
|
||||
jobs:
|
||||
buildamd64:
|
||||
build_amd64:
|
||||
if: gitea.repository_owner == 'NephNET' && !contains(github.event.head_commit.message, '#noci')
|
||||
runs-on: nephnet
|
||||
runs-on: nephnet-amd64
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
@ -12,13 +12,21 @@ jobs:
|
|||
run: |
|
||||
docker build --pull -t code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-amd64 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: actions/docker-login@v2
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: docker push code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-amd64
|
||||
- name: Notify Discord
|
||||
uses: actions/discord-status@v1
|
||||
if: always()
|
||||
with:
|
||||
title: "Container Build (X86_64)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
buildarm64:
|
||||
build_arm64:
|
||||
if: gitea.repository_owner == 'NephNET' && !contains(github.event.head_commit.message, '#noci')
|
||||
runs-on: nephnet-arm64
|
||||
steps:
|
||||
|
@ -28,30 +36,6 @@ jobs:
|
|||
run: |
|
||||
docker build --pull -t code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-arm64v8 ${{ gitea.workspace }}
|
||||
- name: Notify Discord
|
||||
uses: actions/discord-status@v1
|
||||
if: always()
|
||||
with:
|
||||
title: "Container Build (AARCH64)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
packageamd64:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [buildamd64]
|
||||
runs-on: nephnet
|
||||
steps:
|
||||
- name: Docker Login
|
||||
uses: actions/docker-login@v2
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: docker push code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-amd64
|
||||
packagearm64:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [buildarm64]
|
||||
runs-on: nephnet-arm64
|
||||
steps:
|
||||
- name: Docker Login
|
||||
uses: actions/docker-login@v2
|
||||
with:
|
||||
|
@ -60,9 +44,14 @@ jobs:
|
|||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: docker push code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-arm64v8
|
||||
manifestpkg:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [packageamd64, packagearm64]
|
||||
- name: Notify Discord
|
||||
uses: actions/discord-status@v1
|
||||
if: always()
|
||||
with:
|
||||
title: "Container Build (AARCH64)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
build_manifest:
|
||||
needs: [build_amd64, build_arm64]
|
||||
runs-on: nephnet
|
||||
steps:
|
||||
- name: Docker Login
|
||||
|
@ -75,10 +64,10 @@ jobs:
|
|||
run: |
|
||||
docker manifest create code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }} --amend code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-amd64 --amend code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}-arm64v8
|
||||
docker manifest push --purge code.nephatrine.net/nephnet/nginx-h5ai:${{ gitea.ref_name }}
|
||||
publishamd64:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [buildamd64]
|
||||
runs-on: nephnet
|
||||
publish_amd64:
|
||||
if: gitea.ref_name == 'master'
|
||||
needs: [build_amd64]
|
||||
runs-on: nephnet-amd64
|
||||
steps:
|
||||
- name: Check Base Image
|
||||
if: github.event_name != 'push'
|
||||
|
@ -104,9 +93,9 @@ jobs:
|
|||
description: "The container image was pushed to [DockerHub](https://hub.docker.com/repository/docker/nephatrine/nginx-h5ai/general).\nPull `nephatrine/nginx-h5ai:latest-amd64` for the newest image."
|
||||
nodetail: true
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_PACKAGE }}
|
||||
publisharm64:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [buildarm64]
|
||||
publish_arm64:
|
||||
if: gitea.ref_name == 'master'
|
||||
needs: [build_arm64]
|
||||
runs-on: nephnet-arm64
|
||||
steps:
|
||||
- name: Docker Login
|
||||
|
@ -118,9 +107,8 @@ jobs:
|
|||
run: |
|
||||
docker tag code.nephatrine.net/nephnet/nginx-h5ai:master-arm64v8 nephatrine/nginx-h5ai:latest-arm64v8
|
||||
docker push nephatrine/nginx-h5ai:latest-arm64v8
|
||||
manifesthub:
|
||||
if: gitea.repository_owner == 'NephNET' && gitea.ref_name == 'master'
|
||||
needs: [publishamd64, publisharm64]
|
||||
publish_manifest:
|
||||
needs: [publish_amd64, publish_arm64]
|
||||
runs-on: nephnet
|
||||
steps:
|
||||
- name: Docker Login
|
||||
|
@ -138,3 +126,11 @@ jobs:
|
|||
docker manifest push --purge nephatrine/nginx-h5ai:0.31
|
||||
docker manifest push --purge nephatrine/nginx-h5ai:0
|
||||
docker manifest push --purge nephatrine/nginx-h5ai:latest
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Docker Describe
|
||||
uses: actions/dockerhub-update-description@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
repository: nephatrine/nginx-h5ai
|
||||
|
|
Loading…
Reference in New Issue