8 Commits

Author SHA1 Message Date
9e26479f67 bump: v0.0.39 -> v0.0.40
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Failing after 0s
Release / release (push) Has been skipped
Release / package (push) Has been skipped
2025-05-17 01:50:01 -04:00
000797f930 fix: explicitly name registry
Some checks failed
Check / check (push) Failing after 0s
2025-05-17 01:48:32 -04:00
1e8e06738b bump: v0.0.38 -> v0.0.39
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Failing after 0s
Release / release (push) Has been skipped
Release / package (push) Has been skipped
2025-05-17 01:45:32 -04:00
28dbf76789 fix: use repo name as name
Some checks failed
Check / check (push) Failing after 0s
2025-05-17 01:43:58 -04:00
93aa1ebd3b bump: v0.0.37 -> v0.0.38
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Failing after 0s
Release / release (push) Has been skipped
Release / package (push) Has been skipped
2025-05-17 01:22:25 -04:00
bf13344cbe fix: needs check
Some checks failed
Check / check (push) Failing after 0s
2025-05-17 01:20:56 -04:00
62358e100c bump: v0.0.36 -> v0.0.37
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Failing after 0s
Release / release (push) Has been skipped
Release / package (push) Has been skipped
2025-05-17 01:20:13 -04:00
7ee1cd94dc fix: use ref_name
Some checks failed
Check / check (push) Failing after 0s
2025-05-17 01:18:40 -04:00
5 changed files with 50 additions and 51 deletions

View File

@ -30,45 +30,45 @@ jobs:
- name: Check - name: Check
run: nix flake check run: nix flake check
release: # release:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: check # needs: check
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
- name: Install Nix # - name: Install Nix
uses: cachix/install-nix-action@v31 # uses: cachix/install-nix-action@v31
with: # with:
nix_path: nixpkgs=channel:nixos-unstable # nix_path: nixpkgs=channel:nixos-unstable
- name: Use Cachix # - name: Use Cachix
uses: cachix/cachix-action@v16 # uses: cachix/cachix-action@v16
with: # with:
name: trevstack # name: trevstack
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build # - name: Build
run: > # run: >
nix build # nix build
.#trevstack-linux-amd64 # .#trevstack-linux-amd64
.#trevstack-linux-arm64 # .#trevstack-linux-arm64
.#trevstack-linux-arm # .#trevstack-linux-arm
.#trevstack-windows-amd64 # .#trevstack-windows-amd64
.#trevstack-darwin-amd64 # .#trevstack-darwin-amd64
.#trevstack-darwin-arm64 # .#trevstack-darwin-arm64
- name: Release # - name: Release
uses: softprops/action-gh-release@v2 # uses: softprops/action-gh-release@v2
with: # with:
generate_release_notes: true # generate_release_notes: true
files: |- # files: |-
result*/bin/* # result*/bin/*
# https://docs.docker.com/build/ci/github-actions/manage-tags-labels/ # https://docs.docker.com/build/ci/github-actions/manage-tags-labels/
package: package:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release # Wait for binary cache to propagate needs: check # Wait for binary cache to propagate
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -86,15 +86,14 @@ jobs:
- name: Set env - name: Set env
run: | run: |
TAG=${{ github.event.release.tag_name }} TAG=${{ github.ref_name }}
VERSION=${TAG#v} VERSION=${TAG#v}
NAME="trevstack:${VERSION}"
REPOSITORY=${{ github.repository }} REPOSITORY=${{ github.repository }}
REGISTRY="ghcr.io/${REPOSITORY}" NAME="${REPOSITORY}:${VERSION}"
REGISTRY="ghcr.io"
echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "REPOSITORY=${REPOSITORY}" >> $GITHUB_ENV
echo "NAME=${NAME}" >> $GITHUB_ENV echo "NAME=${NAME}" >> $GITHUB_ENV
echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV
@ -107,9 +106,9 @@ jobs:
- name: Build & Load Images - name: Build & Load Images
run: | run: |
nix build .#trevstack-linux-amd64-image && ./result | docker load nix build .#${REPOSITORY}-linux-amd64-image && ./result | docker load
nix build .#trevstack-linux-arm64-image && ./result | docker load nix build .#${REPOSITORY}-linux-arm64-image && ./result | docker load
nix build .#trevstack-linux-arm-image && ./result | docker load nix build .#${REPOSITORY}-linux-arm-image && ./result | docker load
- name: Push Images - name: Push Images
run: | run: |
@ -133,14 +132,14 @@ jobs:
docker manifest annotate ${REGISTRY}/${NAME} ${REGISTRY}/${NAME}-arm64 --arch arm64 docker manifest annotate ${REGISTRY}/${NAME} ${REGISTRY}/${NAME}-arm64 --arch arm64
docker manifest annotate ${REGISTRY}/${NAME} ${REGISTRY}/${NAME}-arm --arch arm docker manifest annotate ${REGISTRY}/${NAME} ${REGISTRY}/${NAME}-arm --arch arm
docker manifest create ${REGISTRY}/trevstack:latest \ docker manifest create ${REGISTRY}/${REPOSITORY}:latest \
${REGISTRY}/${NAME}-amd64 \ ${REGISTRY}/${NAME}-amd64 \
${REGISTRY}/${NAME}-arm64 \ ${REGISTRY}/${NAME}-arm64 \
${REGISTRY}/${NAME}-arm ${REGISTRY}/${NAME}-arm
docker manifest annotate ${REGISTRY}/trevstack:latest ${REGISTRY}/${NAME}-amd64 --arch amd64 docker manifest annotate ${REGISTRY}/${REPOSITORY}:latest ${REGISTRY}/${NAME}-amd64 --arch amd64
docker manifest annotate ${REGISTRY}/trevstack:latest ${REGISTRY}/${NAME}-arm64 --arch arm64 docker manifest annotate ${REGISTRY}/${REPOSITORY}:latest ${REGISTRY}/${NAME}-arm64 --arch arm64
docker manifest annotate ${REGISTRY}/trevstack:latest ${REGISTRY}/${NAME}-arm --arch arm docker manifest annotate ${REGISTRY}/${REPOSITORY}:latest ${REGISTRY}/${NAME}-arm --arch arm
docker manifest push ${REGISTRY}/${NAME} docker manifest push ${REGISTRY}/${NAME}
docker manifest push ${REGISTRY}/trevstack:latest docker manifest push ${REGISTRY}/${REPOSITORY}:latest

View File

@ -1,12 +1,12 @@
{ {
"name": "trevstack", "name": "trevstack",
"version": "0.0.36", "version": "0.0.40",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "trevstack", "name": "trevstack",
"version": "0.0.36", "version": "0.0.40",
"devDependencies": { "devDependencies": {
"@bufbuild/protovalidate": "^0.1.1", "@bufbuild/protovalidate": "^0.1.1",
"@connectrpc/connect": "^2.0.2", "@connectrpc/connect": "^2.0.2",

View File

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

View File

@ -21,7 +21,7 @@
... ...
}: let }: let
pname = "trevstack"; pname = "trevstack";
version = "0.0.36"; version = "0.0.40";
build-systems = [ build-systems = [
"x86_64-linux" "x86_64-linux"
@ -130,7 +130,7 @@
pname = "check-client"; pname = "check-client";
inherit version; inherit version;
src = ./client; src = ./client;
npmDepsHash = "sha256-HC9h9sSh/1TkeTXN5yDkxz9OvwKdhRcNOEIzxvTVfrA="; npmDepsHash = "sha256-PJzc3lVd7vvX/zGN3GbtbnCYL3tiPsndMFkzhESVcJw=";
dontNpmInstall = true; dontNpmInstall = true;
buildPhase = '' buildPhase = ''
@ -193,7 +193,7 @@
client = pkgs.buildNpmPackage { client = pkgs.buildNpmPackage {
inherit pname version; inherit pname version;
src = ./client; src = ./client;
npmDepsHash = "sha256-HC9h9sSh/1TkeTXN5yDkxz9OvwKdhRcNOEIzxvTVfrA="; npmDepsHash = "sha256-PJzc3lVd7vvX/zGN3GbtbnCYL3tiPsndMFkzhESVcJw=";
installPhase = '' installPhase = ''
cp -r build "$out" cp -r build "$out"

View File

@ -3,7 +3,7 @@ servers:
- url: /grpc - url: /grpc
info: info:
title: Trevstack API title: Trevstack API
version: 0.0.36 version: 0.0.40
description: API for Trevstack description: API for Trevstack
contact: contact:
name: Trev name: Trev