Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): try to run vault in docker #794

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,20 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
env:
VAULT__URI: http://127.0.0.1:8200
VAULT__URI: http://vault:8200
VAULT__TOKEN: twit3itPSAD0yok
VAULT__MOUNTPOINT: secret
VAULT__SECRETS__0: tests
VAULT__SECRETS__1: test2
services:
sonyflake:
image: titpetric/sonyflake
vault:
image: vault
env:
VAULT_DEV_ROOT_TOKEN_ID: twit3itPSAD0yok
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
options: --cap-add=IPC_LOCK
steps:
- uses: actions/checkout@v3
- name: Install Vault
run: |
curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
apt-get update && apt-get install -y vault
setcap cap_ipc_lock= /usr/bin/vault
- name: Start Vault
run: |
vault server -dev -dev-root-token-id="${VAULT__TOKEN}" &
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.Configuration.Vault.Tests/Sitko.Core.Configuration.Vault.Tests.csproj

Expand Down