mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-01 14:38:59 +00:00
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
name: build voice
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- voice/**
|
|
jobs:
|
|
pushx64:
|
|
name: 'yolks:voice_${{ matrix.tag }}'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tag:
|
|
- teaspeak
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: docker/setup-buildx-action@v3
|
|
with:
|
|
buildkitd-flags: --debug
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./voice/${{ matrix.tag }}
|
|
file: ./voice/${{ matrix.tag }}/Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
ghcr.io/darksaid98/yolks:voice_${{ matrix.tag }}
|
|
|
|
pushx64_arm64:
|
|
name: 'yolks:voice_${{ matrix.tag }}'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tag:
|
|
- mumble
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# Setup QEMU for ARM64 Build
|
|
- uses: docker/setup-qemu-action@v3
|
|
- uses: docker/setup-buildx-action@v3
|
|
with:
|
|
version: 'v0.8.2'
|
|
buildkitd-flags: --debug
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/build-push-action@v3
|
|
with:
|
|
context: ./voice/${{ matrix.tag }}
|
|
file: ./voice/${{ matrix.tag }}/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
ghcr.io/darksaid98/yolks:voice_${{ matrix.tag }}
|