Skip to content

Commit

Permalink
corrects export
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi committed Sep 13, 2024
1 parent 2a20146 commit 3a33c6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches: [ main ]
workflow_dispatch: {}

env:
VAULT_ADDR: http://127.0.0.1:8200

jobs:
bash-linux:
runs-on: ubuntu-latest
Expand All @@ -30,13 +33,13 @@ jobs:
docker ps
echo "docker images"
docker images
echo "export vault addr"
export VAULT_ADDR=http://127.0.0.1:8200
# echo "export vault addr"
# export VAULT_ADDR=http://127.0.0.1:8200
echo "vault status"
vault status
echo "login to vault"
vault login token=vault-plaintext-root-token
vault status
export MYKEY=$(vault kv get -field=MY_PASSWORD /secrets/my-secrets)
export MYKEY=$(vault kv get -field=password /my-secrets/dev)
echo $MKEY

2 changes: 1 addition & 1 deletion vault-docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ done
echo "Authenticating to vault..."
vault login token=vault-plaintext-root-token
echo "Initializing vault..."
vault secrets enable -version=2 -path=my-secrets kv
vault secrets enable -version=1 -path=my-secrets kv
echo "Adding entries..."
vault kv put my-secrets/dev username=test_user
vault kv put my-secrets/dev password=test_password
Expand Down

0 comments on commit 3a33c6a

Please sign in to comment.