schedule weekly rebuild
Build Container Image / build_arm64 (push) Successful in 13s Details
Build Container Image / publish_arm64 (push) Successful in 11s Details
Build Container Image / build_amd64 (push) Successful in 32s Details
Build Container Image / build_manifest (push) Successful in 6s Details
Build Container Image / publish_amd64 (push) Successful in 23s Details
Build Container Image / publish_manifest (push) Successful in 22s Details

This commit is contained in:
Daniel Wolf 2023-10-16 13:13:05 -04:00
parent 350897003e
commit 7afc7cdb67
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 22 additions and 18 deletions

View File

@ -1,9 +1,12 @@
name: Build Container Image
run-name: ${{ gitea.actor }} pushed to ${{ gitea.repository }}:${{ gitea.ref_name }}
on: [push, workflow_call]
on:
push:
schedule:
- cron: '0 18 * * 5'
jobs:
build_amd64:
if: gitea.repository_owner == 'NephNET' && !contains(github.event.head_commit.message, '#noci')
if: gitea.repository_owner == 'NephNET' && (!contains(gitea.event.head_commit.message, '#noci') || gitea.event_name != 'push')
runs-on: nephnet-amd64
steps:
- name: Checkout Repository
@ -27,7 +30,7 @@ jobs:
title: "Container Build (X86_64)"
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
build_arm64:
if: gitea.repository_owner == 'NephNET' && !contains(github.event.head_commit.message, '#noci')
if: gitea.repository_owner == 'NephNET' && (!contains(gitea.event.head_commit.message, '#noci') || gitea.event_name != 'push')
runs-on: nephnet-arm64
steps:
- name: Checkout Repository
@ -69,13 +72,6 @@ jobs:
needs: [build_amd64]
runs-on: nephnet-amd64
steps:
- name: Check Base Image
if: github.event_name != 'push'
uses: https://github.com/lucacome/docker-image-update-checker@v1
id: checkbase
with:
base-image: nephatrine/nginx-php:latest-amd64
image: nephatrine/nginx-h5ai:latest-amd64
- name: Docker Login
uses: https://github.com/docker/login-action@v3
with:
@ -85,14 +81,6 @@ jobs:
run: |
docker tag code.nephatrine.net/nephnet/nginx-h5ai:master-amd64 nephatrine/nginx-h5ai:latest-amd64
docker push nephatrine/nginx-h5ai:latest-amd64
- name: Notify Discord
if: github.event_name == 'push' || steps.checkbase.outputs.needs-updating == 'true'
uses: https://github.com/sarisia/actions-status-discord@v1
with:
title: "DockerHub: nginx-h5ai"
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 }}
publish_arm64:
if: gitea.ref_name == 'master'
needs: [build_arm64]
@ -111,6 +99,14 @@ jobs:
needs: [publish_amd64, publish_arm64]
runs-on: nephnet
steps:
- name: Check Base Image
if: github.event_name != 'push'
uses: https://github.com/lucacome/docker-image-update-checker@v1
id: checkbase
with:
base-image: nephatrine/nginx-php:latest
image: nephatrine/nginx-h5ai:latest
platforms: linux/amd64
- name: Docker Login
uses: https://github.com/docker/login-action@v3
with:
@ -126,6 +122,14 @@ 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: Notify Discord
if: github.event_name == 'push' || steps.checkbase.outputs.needs-updating == 'true'
uses: https://github.com/sarisia/actions-status-discord@v1
with:
title: "DockerHub: nginx-h5ai"
description: "The container image was pushed to [DockerHub](https://hub.docker.com/repository/docker/nephatrine/nginx-h5ai/general).\nPull `nephatrine/nginx-h5ai:latest` for the newest image."
nodetail: true
webhook: ${{ secrets.DISCORD_WEBHOOK_PACKAGE }}
- name: Checkout Repository
uses: https://gitea.com/actions/checkout@v3
- name: Docker Describe