fixed vault setup
This commit is contained in:
@@ -10,16 +10,6 @@ labels:
|
|||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
path:
|
|
||||||
include:
|
|
||||||
- api/gateway/mntx/**
|
|
||||||
- api/gateway/common/**
|
|
||||||
- api/proto/**
|
|
||||||
- api/pkg/**
|
|
||||||
- ci/**
|
|
||||||
- .woodpecker/gateway_mntx.yml
|
|
||||||
- event: tag
|
- event: tag
|
||||||
ref: refs/tags/v*
|
ref: refs/tags/v*
|
||||||
|
|
||||||
|
|||||||
@@ -8,16 +8,6 @@ labels:
|
|||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
path:
|
|
||||||
include:
|
|
||||||
- api/gateway/tgsettle/**
|
|
||||||
- api/gateway/common/**
|
|
||||||
- api/proto/**
|
|
||||||
- api/pkg/**
|
|
||||||
- ci/**
|
|
||||||
- .woodpecker/gateway_tgsettle.yml
|
|
||||||
- event: tag
|
- event: tag
|
||||||
ref: refs/tags/v*
|
ref: refs/tags/v*
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,19 @@ when:
|
|||||||
ignore_message: '[infra]'
|
ignore_message: '[infra]'
|
||||||
|
|
||||||
steps:
|
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
|
- name: secrets
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
depends_on: [ version ]
|
||||||
environment:
|
environment:
|
||||||
VAULT_ADDR: { from_secret: VAULT_ADDR }
|
VAULT_ADDR: { from_secret: VAULT_ADDR }
|
||||||
VAULT_ROLE_ID: { from_secret: VAULT_APP_ROLE }
|
VAULT_ROLE_ID: { from_secret: VAULT_APP_ROLE }
|
||||||
|
|||||||
Reference in New Issue
Block a user