Skip to content

Commit

Permalink
Get release secrets from Vault (#9)
Browse files Browse the repository at this point in the history
* Get release secrets from Vault

* fix orb reference
  • Loading branch information
Andrew Suderman authored Jan 3, 2022
1 parent ee0b157 commit ba8a807
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
version: 2.1

orbs:
rok8s: fairwinds/rok8s-scripts@11

references:
install_vault: &install_vault
run:
name: install hashicorp vault
command: |
apk --update add curl yq
cd /tmp
curl -LO https://releases.hashicorp.com/vault/1.9.2/vault_1.9.2_linux_amd64.zip
unzip vault_1.9.2_linux_amd64.zip
mv vault /usr/bin/vault
jobs:
release:
docker:
- image: cimg/go:1.17
- image: goreleaser/goreleaser:v1.2.5
steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash
- *install_vault
- rok8s/get_vault_env:
vault_path: repo/global/env
- run: echo 'export GORELEASER_CURRENT_TAG="${CIRCLE_TAG}"' >> $BASH_ENV
- run: goreleaser
test:
docker:
- image: cimg/go:1.17
Expand Down

0 comments on commit ba8a807

Please sign in to comment.