-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add support for security scanning via Eureka
- Loading branch information
1 parent
3578ebf
commit b3a9f14
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |