Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d27ee1202b | |||
32ac21afd2 | |||
39959f041d | |||
124d702ec4 | |||
2587483733 | |||
575ec574dd |
@ -47,12 +47,12 @@ jobs:
|
|||||||
- 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: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
@ -65,13 +65,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: release # Wait for binary cache to propagate
|
needs: release # Wait for binary cache to propagate
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get domain
|
||||||
|
id: get_domain
|
||||||
|
run: |
|
||||||
|
DOMAIN=$(basename ${{ gitea.server_url }})
|
||||||
|
echo $DOMAIN
|
||||||
|
echo "domain=$DOMAIN" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
# list of Docker images to use as base name for tags
|
# list of Docker images to use as base name for tags
|
||||||
images: |
|
images: |
|
||||||
${{ gitea.server_url }}/${{ gitea.repository }}
|
${{ steps.get_domain.outputs.domain }}/${{ gitea.repository }}
|
||||||
# generate Docker tags based on the following events/attributes
|
# generate Docker tags based on the following events/attributes
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
|
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -51,12 +51,12 @@ jobs:
|
|||||||
- 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
|
||||||
|
@ -42,7 +42,7 @@ It's that simple. If you're feeling fancy, install [direnv](https://direnv.net/)
|
|||||||
|
|
||||||
- `nix flake check`: runs all validations
|
- `nix flake check`: runs all validations
|
||||||
|
|
||||||
- `buf lint` & `buf generate`: lints and generates code from protocol buffers
|
- `buf lint proto` & `buf generate`: lints and generates code from protocol buffers
|
||||||
|
|
||||||
- `sqlc vet` & `sqlc generate`: verifies and generates code from SQL files
|
- `sqlc vet` & `sqlc generate`: verifies and generates code from SQL files
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ To use github actions for CI/CD, you'll need to create a fine-grained personal a
|
|||||||
- Contents (read and write)
|
- Contents (read and write)
|
||||||
- Pull requests (read and write)
|
- Pull requests (read and write)
|
||||||
|
|
||||||
and change some settings for the repository:
|
And change some settings for the repository:
|
||||||
|
|
||||||
- General -> Allow auto-merge: true
|
- General -> Allow auto-merge: true
|
||||||
- Rules -> Rulesets -> New ruleset
|
- Rules -> Rulesets -> New ruleset
|
||||||
@ -75,7 +75,7 @@ To use gitea actions for CI/CD, you'll need to create an [API token](https://doc
|
|||||||
- write:repository
|
- write:repository
|
||||||
- write:package
|
- write:package
|
||||||
|
|
||||||
and change some settings for the repository:
|
And change some settings for the repository:
|
||||||
|
|
||||||
- Repository -> Delete pull request branch after merge by default: true
|
- Repository -> Delete pull request branch after merge by default: true
|
||||||
- Branches -> Add New Rule
|
- Branches -> Add New Rule
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
version: v2
|
version: v2
|
||||||
clean: true
|
clean: true
|
||||||
|
inputs:
|
||||||
|
- directory: proto
|
||||||
|
|
||||||
managed:
|
managed:
|
||||||
enabled: true
|
enabled: true
|
||||||
override:
|
override:
|
||||||
|
4
client/package-lock.json
generated
4
client/package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"version": "0.0.31",
|
"version": "0.0.34",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"version": "0.0.31",
|
"version": "0.0.34",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bufbuild/protovalidate": "^0.1.1",
|
"@bufbuild/protovalidate": "^0.1.1",
|
||||||
"@connectrpc/connect": "^2.0.2",
|
"@connectrpc/connect": "^2.0.2",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "trevstack",
|
"name": "trevstack",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.31",
|
"version": "0.0.34",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
@ -3,8 +3,8 @@ servers:
|
|||||||
- url: /grpc
|
- url: /grpc
|
||||||
info:
|
info:
|
||||||
title: Trevstack API
|
title: Trevstack API
|
||||||
version: 1.0.0
|
version: 0.0.33
|
||||||
description: API for trevstack
|
description: API for Trevstack
|
||||||
contact:
|
contact:
|
||||||
name: Trev
|
name: Trev
|
||||||
email: spam@trev.xyz
|
email: spam@trev.xyz
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pname = "trevstack";
|
pname = "trevstack";
|
||||||
version = "0.0.31";
|
version = "0.0.34";
|
||||||
|
|
||||||
build-systems = [
|
build-systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
@ -127,7 +127,7 @@
|
|||||||
pname = "check-client";
|
pname = "check-client";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = ./client;
|
src = ./client;
|
||||||
npmDepsHash = "sha256-9FUZNG+LEGWop0zpmTPx9d6TUOzjAMtLnxiH6HY6Vz4=";
|
npmDepsHash = "sha256-F5DHJvvASnHh03Soa4L4jaDIC9LC9sUX0wDasYHcuDE=";
|
||||||
dontNpmInstall = true;
|
dontNpmInstall = true;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -190,7 +190,7 @@
|
|||||||
client = pkgs.buildNpmPackage {
|
client = pkgs.buildNpmPackage {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
src = ./client;
|
src = ./client;
|
||||||
npmDepsHash = "sha256-9FUZNG+LEGWop0zpmTPx9d6TUOzjAMtLnxiH6HY6Vz4=";
|
npmDepsHash = "sha256-F5DHJvvASnHh03Soa4L4jaDIC9LC9sUX0wDasYHcuDE=";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r build "$out"
|
cp -r build "$out"
|
||||||
|
@ -3,7 +3,7 @@ servers:
|
|||||||
- url: /grpc
|
- url: /grpc
|
||||||
info:
|
info:
|
||||||
title: Trevstack API
|
title: Trevstack API
|
||||||
version: 0.0.31
|
version: 0.0.34
|
||||||
description: API for Trevstack
|
description: API for Trevstack
|
||||||
contact:
|
contact:
|
||||||
name: Trev
|
name: Trev
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
|
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
|
||||||
version: v2
|
version: v2
|
||||||
modules:
|
modules:
|
||||||
- path: proto
|
- path: .
|
||||||
deps:
|
deps:
|
||||||
- buf.build/bufbuild/protovalidate
|
- buf.build/bufbuild/protovalidate
|
Reference in New Issue
Block a user