Files
envbao-admin/.gitea/workflows/release.yml
T
mattandClaude Sonnet 5.5 6bc94f30ec
CI / integration (push) Successful in 13s
CI / check (push) Successful in 18s
Release: log in to pkgs with PKGS_USER/PKGS_PASSWORD secrets (ENB-26)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 11:48:16 +00:00

63 lines
1.5 KiB
YAML

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
ports:
- 8200: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"