-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (51 loc) · 1.49 KB
/
unstable.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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