Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e65407227 | ||
|
|
51e2ad3d56 | ||
|
|
b1f038925e | ||
|
|
6bc94f30ec | ||
|
|
cbb64d92ca | ||
|
|
0c4686708a |
No files matched your search
@@ -2,6 +2,7 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
@@ -31,8 +32,6 @@ jobs:
|
||||
env:
|
||||
BAO_DEV_ROOT_TOKEN_ID: root
|
||||
BAO_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
|
||||
ports:
|
||||
- 8200:8200
|
||||
options: --cap-add=IPC_LOCK
|
||||
env:
|
||||
BAO_ADDR: http://openbao:8200
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
env:
|
||||
REGISTRY: pkgs.daubney.dev
|
||||
IMAGE: pkgs.daubney.dev/${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm audit --audit-level=high
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
openbao:
|
||||
image: openbao/openbao:latest
|
||||
env:
|
||||
BAO_DEV_ROOT_TOKEN_ID: root
|
||||
BAO_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
|
||||
options: --cap-add=IPC_LOCK
|
||||
env:
|
||||
BAO_ADDR: http://openbao:8200
|
||||
BAO_TOKEN: root
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run test:integration
|
||||
|
||||
image:
|
||||
needs: [check, integration]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Log in to the container registry
|
||||
run: echo "${{ secrets.PKGS_PASSWORD }}" | docker login "$REGISTRY" -u "${{ secrets.PKGS_USER }}" --password-stdin
|
||||
- name: Build and push
|
||||
run: |
|
||||
VERSION="${GITHUB_REF_NAME#v}"
|
||||
docker build -t "$IMAGE:$VERSION" -t "$IMAGE:latest" .
|
||||
docker push "$IMAGE:$VERSION"
|
||||
docker push "$IMAGE:latest"
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "envbao-admin",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "envbao-admin",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.2",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.104.5",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "envbao-admin",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.2",
|
||||
"license": "BSD-3-Clause",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user