fixed vault setup

This commit is contained in:
Stephan D
2026-03-17 00:07:23 +01:00
parent 89edf33c2c
commit 13391c61d3
3 changed files with 11 additions and 20 deletions

View File

@@ -10,16 +10,6 @@ labels:
platform: linux/amd64
when:
- event: push
branch: main
path:
include:
- api/gateway/mntx/**
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/**
- .woodpecker/gateway_mntx.yml
- event: tag
ref: refs/tags/v*

View File

@@ -8,16 +8,6 @@ labels:
platform: linux/amd64
when:
- event: push
branch: main
path:
include:
- api/gateway/tgsettle/**
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/**
- .woodpecker/gateway_tgsettle.yml
- event: tag
ref: refs/tags/v*

View File

@@ -6,8 +6,19 @@ when:
ignore_message: '[infra]'
steps:
- name: version
image: alpine:latest
commands:
- set -euo pipefail
- apk add --no-cache git
- GIT_REV="$(git rev-parse --short HEAD)"
- BUILD_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
- APP_V="$(cat version)"
- printf "GIT_REV=%s\nBUILD_BRANCH=%s\nAPP_V=%s\n" "$GIT_REV" "$BUILD_BRANCH" "$APP_V" | tee .env.version
- name: secrets
image: alpine:latest
depends_on: [ version ]
environment:
VAULT_ADDR: { from_secret: VAULT_ADDR }
VAULT_ROLE_ID: { from_secret: VAULT_APP_ROLE }