Skip to content

Commit

Permalink
adds workflow to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauti committed May 17, 2024
1 parent 56b22e9 commit e16c1e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/image-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ImageBuilder
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Import Secrets
uses: hashicorp/vault-action@v2
with:
url: http://127.0.0.1:8200
tlsSkipVerify: true
token: ${{ secrets.VAULT_TOKEN }}
secrets: |
secret/data/ci app_secret
- name: Build Docker Image
run: docker build . --file Dockerfile --build-arg app_secret="${{ env.APP_SECRET }}" -t vault-action-exampleapp
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
actions-runner

0 comments on commit e16c1e5

Please sign in to comment.