Skip to content

ci: add nix, drop aarch64 flatpak, update tools #13

ci: add nix, drop aarch64 flatpak, update tools

ci: add nix, drop aarch64 flatpak, update tools #13

Workflow file for this run

on:
push:
branches: [master]
paths:
- "website/**"
- ".github/workflows/website.yml"
workflow_dispatch:
name: Website
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
name: "Build and Publish Image"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: website
- name: Build site
run: npm run build
working-directory: website
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
- name: Log in to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository_owner }}/switchyard-website
tags: |
type=raw,value=latest
type=sha
- name: Build and push
uses: docker/build-push-action@v7
with:
context: website
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}