Skip to content

Commit

Permalink
Update acceptance-tests.yml
Browse files Browse the repository at this point in the history
Install Vault binary and start dev server
  • Loading branch information
alexhung authored Aug 1, 2024
1 parent 7cc6853 commit 5a58c91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Install Vault binary
uses: eLco/setup-vault@v1
- name: Run Vault Dev server
run: |
docker run --cap-add=IPC_LOCK -e 'VAULT_LOCAL_CONFIG={"storage": {"file": {"path": "/vault/file"}}}' -d --name=dev-vault -p 8200:8200 hashicorp/vault server
export VAULT_SERVER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' dev-vault)
echo "VAULT_ADDR='http://$VAULT_SERVER_IP:8200'" >> "$GITHUB_ENV"
- name: Create Artifactory data directories and copy data
env:
ARTIFACTORY_LICENSE: ${{ secrets.ARTIFACTORY_LICENSE }}
Expand Down

0 comments on commit 5a58c91

Please sign in to comment.