progress #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unstable release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
# Required for version patching | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: deno install | |
- name: Patch version | |
run: npm version 0.0.0-unstable --no-commit-hooks --no-git-tag-version | |
- name: Run check | |
run: deno task check | |
- name: Mock service worker init | |
run: deno task msw:init | |
- name: Build frontend | |
run: deno task build | |
- name: Build latest docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
tags: ghcr.io/rickli-cloud/headnet:unstable | |
push: true |