Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadam authored Nov 6, 2024
1 parent 36d526d commit 38b6e6c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Binary file added .github/workflows/DS_Store-2
Binary file not shown.
27 changes: 27 additions & 0 deletions .github/workflows/image-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ImageBuilder
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Vault-github integration
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Import Secrets
id: secretdata
uses: hashicorp/vault-action@v2.4.0
with:
url: https://vault-public-vault-22deb760.8ee49bbe.z1.hashicorp.cloud:8200
role: demo
method: jwt
namespace: admin
secrets: |
secrets/data/ci app_secret
- name: Build Docker Image
run: docker build . --file Dockerfile --build-arg app_secret="${{ env.APP_SECRET }}" -t vault-action-exampleapp
- name: read secret from container
run: docker run vault-action-exampleapp /bin/bash -c "cat ./app_secret" | sed 's/./& /g'

0 comments on commit 38b6e6c

Please sign in to comment.