Skip to content

Commit

Permalink
build: add support for security scanning via Eureka
Browse files Browse the repository at this point in the history
  • Loading branch information
sasadjolic committed Jun 17, 2024
1 parent 3578ebf commit b3a9f14
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/eureka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Eureka Scanning

# Controls when the action will run.
on:
push:
branches:
- '*'

jobs:
eureka-scan:
runs-on: ubuntu-latest
name: scan
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v3

- name: Pull and Run Eureka
run: |
docker login -u ${{ secrets.EUREKA_USER }} -p ${{ secrets.EUREKA_PASSWORD }} ${{ vars.EUREKA_REGISTRY_URL }}
docker pull ${{ vars.EUREKA_REGISTRY_URL }}/${{ vars.EUREKA_REPO }}:${{ vars.EUREKA_TAG }}
docker run --rm --network host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/home/repo \
-e DIND_USER_HOME="$(pwd)" \
-e EUREKA_ENDPOINT="${{ secrets.EUREKA_ENDPOINT }}" \
-e EUREKA_USER=${{ secrets.EUREKA_USER }} \
-e EUREKA_PASSWORD=${{ secrets.EUREKA_PASSWORD }} \
${{ vars.EUREKA_REGISTRY_URL }}/${{ vars.EUREKA_REPO }}:${{ vars.EUREKA_TAG }}

0 comments on commit b3a9f14

Please sign in to comment.