mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-28 18:06:20 +02:00
update workflows.
This commit is contained in:
parent
4150ac48f0
commit
c89b01fb87
6 changed files with 37 additions and 61 deletions
|
@ -1,4 +1,4 @@
|
|||
name: "amd64 images"
|
||||
name: Build and Push to GHCR
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,13 +7,14 @@ on:
|
|||
|
||||
jobs:
|
||||
build-base:
|
||||
name: Build Base Image
|
||||
uses: ./.github/workflows/image_base.yml
|
||||
with:
|
||||
platforms: linux/amd64
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
secrets: inherit
|
||||
|
||||
build-apps:
|
||||
name: Build Apps Image
|
||||
uses: ./.github/workflows/image_app.yml
|
||||
needs: build-base
|
||||
strategy:
|
||||
|
@ -22,21 +23,34 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
- name: firefox
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
- name: waterfox
|
||||
platforms: linux/amd64
|
||||
- name: chromium
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
- name: google-chrome
|
||||
platforms: linux/amd64
|
||||
- name: ungoogled-chromium
|
||||
platforms: linux/amd64
|
||||
- name: microsoft-edge
|
||||
platforms: linux/amd64
|
||||
- name: brave
|
||||
platforms: linux/amd64
|
||||
- name: vivaldi
|
||||
platforms: linux/amd64
|
||||
- name: opera
|
||||
platforms: linux/amd64
|
||||
- name: tor-browser
|
||||
platforms: linux/amd64
|
||||
- name: remmina
|
||||
platforms: linux/amd64
|
||||
- name: vlc
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
- name: xfce
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
- name: kde
|
||||
platforms: linux/amd64
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
platforms: linux/amd64
|
||||
platforms: ${{ matrix.platforms }}
|
||||
secrets: inherit
|
34
.github/workflows/ghcr_arm.yml
vendored
34
.github/workflows/ghcr_arm.yml
vendored
|
@ -1,34 +0,0 @@
|
|||
name: "arm64v8 and arm32v7 images"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build-base:
|
||||
uses: ./.github/workflows/image_base.yml
|
||||
with:
|
||||
flavor: arm
|
||||
platforms: linux/arm64,linux/arm/v7
|
||||
dockerfile: Dockerfile
|
||||
secrets: inherit
|
||||
|
||||
build-apps:
|
||||
uses: ./.github/workflows/image_app.yml
|
||||
needs: build-base
|
||||
strategy:
|
||||
# Will build all images even if some fail.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: firefox
|
||||
- name: chromium
|
||||
- name: vlc
|
||||
- name: xfce
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
flavor: arm
|
||||
platforms: linux/arm64,linux/arm/v7
|
||||
secrets: inherit
|
6
.github/workflows/ghcr_intel.yml
vendored
6
.github/workflows/ghcr_intel.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: "intel gpu supported images"
|
||||
name: Build and Push to GHCR for Intel
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build-base:
|
||||
name: Build Base Image
|
||||
uses: ./.github/workflows/image_base.yml
|
||||
with:
|
||||
flavor: intel
|
||||
|
@ -15,6 +16,7 @@ jobs:
|
|||
secrets: inherit
|
||||
|
||||
build-apps:
|
||||
name: Build Apps Image
|
||||
uses: ./.github/workflows/image_app.yml
|
||||
needs: build-base
|
||||
strategy:
|
||||
|
@ -38,7 +40,7 @@ jobs:
|
|||
- name: kde
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
flavor: intel
|
||||
platforms: linux/amd64
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
secrets: inherit
|
||||
|
|
6
.github/workflows/ghcr_nvidia.yml
vendored
6
.github/workflows/ghcr_nvidia.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: "nvidia gpu supported images"
|
||||
name: Build and Push to GHCR for Nvidia
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build-base:
|
||||
name: Build Base Image
|
||||
uses: ./.github/workflows/image_base.yml
|
||||
with:
|
||||
flavor: nvidia
|
||||
|
@ -15,6 +16,7 @@ jobs:
|
|||
secrets: inherit
|
||||
|
||||
build-apps:
|
||||
name: Build Apps Image
|
||||
uses: ./.github/workflows/image_app.yml
|
||||
needs: build-base
|
||||
strategy:
|
||||
|
@ -34,7 +36,7 @@ jobs:
|
|||
dockerfile: Dockerfile.nvidia
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
flavor: nvidia
|
||||
platforms: linux/amd64
|
||||
dockerfile: ${{ matrix.dockerfile }}
|
||||
secrets: inherit
|
||||
|
|
14
.github/workflows/image_app.yml
vendored
14
.github/workflows/image_app.yml
vendored
|
@ -7,11 +7,6 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
description: "The name of the application to build."
|
||||
dockerfile:
|
||||
required: false
|
||||
type: string
|
||||
default: "Dockerfile"
|
||||
description: "The Dockerfile to use for building the image."
|
||||
flavor:
|
||||
required: false
|
||||
type: string
|
||||
|
@ -22,10 +17,11 @@ on:
|
|||
type: string
|
||||
default: "linux/amd64"
|
||||
description: "The platforms to build for."
|
||||
secrets:
|
||||
GHCR_ACCESS_TOKEN:
|
||||
required: true
|
||||
description: "GitHub Container Registry access token."
|
||||
dockerfile:
|
||||
required: false
|
||||
type: string
|
||||
default: "Dockerfile"
|
||||
description: "The Dockerfile to use for building the image."
|
||||
|
||||
env:
|
||||
FLAVOR_PREFIX: ${{ inputs.flavor && format('{0}-', inputs.flavor) || '' }}
|
||||
|
|
14
.github/workflows/image_base.yml
vendored
14
.github/workflows/image_base.yml
vendored
|
@ -3,11 +3,6 @@ name: Build and Publish Base Image
|
|||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
dockerfile:
|
||||
required: false
|
||||
type: string
|
||||
default: "Dockerfile"
|
||||
description: "The Dockerfile to use for building the image."
|
||||
flavor:
|
||||
required: false
|
||||
type: string
|
||||
|
@ -18,10 +13,11 @@ on:
|
|||
type: string
|
||||
default: "linux/amd64"
|
||||
description: "The platforms to build for."
|
||||
secrets:
|
||||
GHCR_ACCESS_TOKEN:
|
||||
required: true
|
||||
description: "GitHub Container Registry access token."
|
||||
dockerfile:
|
||||
required: false
|
||||
type: string
|
||||
default: "Dockerfile"
|
||||
description: "The Dockerfile to use for building the image."
|
||||
|
||||
env:
|
||||
FLAVOR_PREFIX: ${{ inputs.flavor && format('{0}-', inputs.flavor) || '' }}
|
||||
|
|
Loading…
Add table
Reference in a new issue