7 Commits

Author SHA1 Message Date
d0cf852b95 bump: v0.0.17 -> v0.0.18 2025-04-16 05:44:08 -04:00
ddce48625e feat: docker binary cache 2025-04-16 05:42:28 -04:00
fbe5efdf0f bump: v0.0.16 -> v0.0.17 2025-04-16 05:33:20 -04:00
77f8362f88 fix: add package write perms 2025-04-16 05:31:33 -04:00
f18107f9c4 bump: v0.0.15 -> v0.0.16 2025-04-16 05:21:56 -04:00
dbcb719166 bump: v0.0.14 -> v0.0.15 2025-04-16 04:44:40 -04:00
cdbb7e2c4d fix: publish to ghcr too 2025-04-16 04:42:48 -04:00
5 changed files with 26 additions and 11 deletions

View File

@ -7,6 +7,7 @@ on:
permissions:
contents: write
packages: write
jobs:
release:
@ -38,6 +39,7 @@ jobs:
# https://docs.docker.com/build/ci/github-actions/manage-tags-labels/
package:
runs-on: ubuntu-latest
needs: release # Wait for binary cache to propagate
steps:
- name: Docker meta
id: meta
@ -45,16 +47,12 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
spotdemo4/trevstack
${{ github.repository }}
ghcr.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to Docker Hub
uses: docker/login-action@v3
@ -62,6 +60,13 @@ jobs:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

View File

@ -9,6 +9,7 @@ WORKDIR /tmp/build
RUN nix \
--extra-experimental-features "nix-command flakes" \
--option filter-syscalls false \
--accept-flake-config \
build
# Copy the Nix store closure into a directory. The Nix store closure is the

View File

@ -1,12 +1,12 @@
{
"name": "trevstack",
"version": "0.0.14",
"version": "0.0.18",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "trevstack",
"version": "0.0.14",
"version": "0.0.18",
"devDependencies": {
"@connectrpc/connect": "^2.0.2",
"@connectrpc/connect-web": "^2.0.2",

View File

@ -1,7 +1,7 @@
{
"name": "trevstack",
"private": true,
"version": "0.0.14",
"version": "0.0.18",
"type": "module",
"scripts": {
"dev": "vite dev",

View File

@ -1,6 +1,15 @@
{
description = "A template for trevstack";
nixConfig = {
extra-substituters = [
"https://trevstack.cachix.org"
];
extra-trusted-public-keys = [
"trevstack.cachix.org-1:wlY2/NBLC4U4u8fD4WgW1kMstfiGbGmgDwE3dBho4tE="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
treli.url = "github:spotdemo4/treli";
@ -12,7 +21,7 @@
...
}: let
pname = "trevstack";
version = "0.0.14";
version = "0.0.18";
supportedSystems = [
"x86_64-linux"
@ -90,7 +99,7 @@
pname = "${pname}-client";
inherit version;
src = ./client;
npmDepsHash = "sha256-Qux0gaCOhxxl2ti93NvELDG7cM9s1zt8ZLXoKzyzXJc=";
npmDepsHash = "sha256-SHt4y3WkiC819zl7NSdh+XW6yCDuaMEPMg1wmq3ctjE=";
nodejs = pkgs.nodejs_22;
installPhase = ''