Skip to content

build(tailwind): move tailwind to deps #6

build(tailwind): move tailwind to deps

build(tailwind): move tailwind to deps #6

Workflow file for this run

name: Release
on:
push:
branches:
- "main"
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm i -g semantic-release @semantic-release/changelog @semantic-release/git
semantic-release
publish:
name: Build Docker Image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./worker/Dockerfile
image: ghcr.io/obviyus/chanson.live/worker
- dockerfile: ./controller/Dockerfile
image: ghcr.io/obviyus/chanson.live/controller
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: builder
uses: docker/setup-buildx-action@v3
- name: "Append ARM buildx builder"
uses: baschny/append-buildx-action@v1
with:
builder: ${{ steps.builder.outputs.name }}
endpoint: "ssh://ubuntu@140.238.243.7"
ssh_private_key: ${{ secrets.ARM64_RUNNER_SSH_PRIVATE_KEY }}
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract tags, labels for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max