Skip to content

chore(core): use node-medley 0.4.6 #77

chore(core): use node-medley 0.4.6

chore(core): use node-medley 0.4.6 #77

name: Build combine-discord and publish to ghcr.io
on:
push:
branches:
- combine-discord
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
HUSKY: 0
jobs:
build-image:
strategy:
matrix:
include:
- runs-on: ubuntu-latest
arch: amd64
platforms: linux/amd64
- runs-on: [self-hosted, macOS, ARM64, docker]
arch: arm64
platforms: linux/arm64
name: Build ${{ matrix.arch }} image
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,suffix=-${{ matrix.arch }}
type=raw,value=latest,suffix=-${{ matrix.arch }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./packages/radio/docker/discord/Dockerfile
build-args: |
ARCH=${{ matrix.arch }}
platforms: ${{ matrix.platforms }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: false
push: true
push-images:
needs: build-image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifest images
uses: Noelware/docker-manifest-action@master
with:
inputs: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-amd64,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-arm64
push: true