mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
update workflows.
This commit is contained in:
@@ -34,10 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build base
|
- name: Build base
|
||||||
run: |
|
run: |
|
||||||
BUILD_IMAGE=${DOCKER_IMAGE} .docker/build ${DOCKER_TAG}
|
./build -b ${DOCKER_IMAGE}:base
|
||||||
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
docker push ${DOCKER_IMAGE}:base
|
||||||
env:
|
|
||||||
DOCKER_TAG: base
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -67,7 +65,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build container
|
- name: Build container
|
||||||
run: |
|
run: |
|
||||||
BUILD_IMAGE=${DOCKER_IMAGE} .docker/build ${DOCKER_TAG}
|
./build -b ${DOCKER_IMAGE}:base -i ${DOCKER_IMAGE}
|
||||||
|
docker tag ${DOCKER_IMAGE}/${DOCKER_TAG} ${DOCKER_IMAGE}:${DOCKER_TAG}
|
||||||
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
||||||
|
|
||||||
- name: Push latest tag
|
- name: Push latest tag
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ env:
|
|||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: m1k1o/neko
|
IMAGE_NAME: m1k1o/neko
|
||||||
TAG_PREFIX: ""
|
TAG_PREFIX: ""
|
||||||
BASE_DOCKERFILE: Dockerfile
|
RUNTIME_DOCKERFILE: Dockerfile
|
||||||
PLATFORMS: linux/amd64
|
PLATFORMS: linux/amd64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -47,12 +47,14 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Generate base Dockerfile
|
||||||
|
run: RUNTIME_DOCKERFILE=${{ env.RUNTIME_DOCKERFILE }} ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: .docker/base/${{ env.BASE_DOCKERFILE }}
|
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@@ -117,7 +119,7 @@ jobs:
|
|||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .docker/${{ env.TAG_NAME }}
|
context: apps/${{ env.TAG_NAME }}
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ env:
|
|||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: m1k1o/neko
|
IMAGE_NAME: m1k1o/neko
|
||||||
TAG_PREFIX: arm-
|
TAG_PREFIX: arm-
|
||||||
BASE_DOCKERFILE: Dockerfile.arm
|
RUNTIME_DOCKERFILE: Dockerfile.arm
|
||||||
PLATFORMS: linux/arm64,linux/arm/v7
|
PLATFORMS: linux/arm64,linux/arm/v7
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -82,12 +82,14 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Generate base Dockerfile
|
||||||
|
run: RUNTIME_DOCKERFILE=${{ env.RUNTIME_DOCKERFILE }} ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: .docker/base/${{ env.BASE_DOCKERFILE }}
|
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@@ -151,8 +153,8 @@ jobs:
|
|||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .docker/${{ env.TAG_NAME }}
|
context: apps/${{ env.TAG_NAME }}
|
||||||
file: .docker/${{ env.TAG_NAME }}/${{ env.DOCKERFILE }}
|
file: apps/${{ env.TAG_NAME }}/${{ env.DOCKERFILE }}
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ env:
|
|||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: m1k1o/neko
|
IMAGE_NAME: m1k1o/neko
|
||||||
TAG_PREFIX: intel-
|
TAG_PREFIX: intel-
|
||||||
BASE_DOCKERFILE: Dockerfile.intel
|
RUNTIME_DOCKERFILE: Dockerfile.intel
|
||||||
PLATFORMS: linux/amd64
|
PLATFORMS: linux/amd64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -47,12 +47,14 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Generate base Dockerfile
|
||||||
|
run: RUNTIME_DOCKERFILE=${{ env.RUNTIME_DOCKERFILE }} ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: .docker/base/${{ env.BASE_DOCKERFILE }}
|
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@@ -117,7 +119,7 @@ jobs:
|
|||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .docker/${{ env.TAG_NAME }}
|
context: apps/${{ env.TAG_NAME }}
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ env:
|
|||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: m1k1o/neko
|
IMAGE_NAME: m1k1o/neko
|
||||||
TAG_PREFIX: nvidia-
|
TAG_PREFIX: nvidia-
|
||||||
BASE_DOCKERFILE: Dockerfile.nvidia
|
RUNTIME_DOCKERFILE: Dockerfile.nvidia
|
||||||
PLATFORMS: linux/amd64
|
PLATFORMS: linux/amd64
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -47,12 +47,14 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Generate base Dockerfile
|
||||||
|
run: RUNTIME_DOCKERFILE=${{ env.RUNTIME_DOCKERFILE }} ./docker/main.go -i Dockerfile.tmpl -o Dockerfile
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: .docker/base/${{ env.BASE_DOCKERFILE }}
|
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@@ -114,8 +116,8 @@ jobs:
|
|||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .docker/${{ env.TAG_NAME }}
|
context: apps/${{ env.TAG_NAME }}
|
||||||
file: .docker/${{ env.TAG_NAME }}/${{ env.DOCKERFILE }}
|
file: apps/${{ env.TAG_NAME }}/${{ env.DOCKERFILE }}
|
||||||
platforms: ${{ env.PLATFORMS }}
|
platforms: ${{ env.PLATFORMS }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
Reference in New Issue
Block a user