-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from pablosnt/develop
Release 1.6.0
- Loading branch information
Showing
29 changed files
with
469 additions
and
109 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
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,42 @@ | ||
name: Desktop app | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
docker-image: | ||
name: Docker Image | ||
runs-on: ubuntu-latest | ||
environment: docker-hub | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
working-directory: rekono/frontend | ||
run: npm install . | ||
|
||
- name: Configure Rekono backend | ||
working-directory: rekono/frontend | ||
run: echo "VUE_APP_DESKTOP_BACKEND_URL=http://127.0.0.1:8000" > .env.production | ||
|
||
- name: Generate Desktop UI | ||
working-directory: rekono/frontend | ||
run: npm run electron:build | ||
|
||
- name: Build Docker image | ||
run: docker build --build-arg REKONO_VERSION=${{ github.event.release.name }} --file docker/debian/Dockerfile --tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} . | ||
|
||
- name: Publish Docker image in Docker Hub | ||
run: | | ||
docker tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} ${{ secrets.DOCKER_USER }}/rekono:latest | ||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }} | ||
docker push ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} | ||
docker push ${{ secrets.DOCKER_USER }}/rekono:latest | ||
docker logout |
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,86 @@ | ||
name: Containers | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- 'docker/**' | ||
- 'docker-compose.yml' | ||
|
||
jobs: | ||
docker-compose: | ||
name: Docker Compose | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build Docker images | ||
run: docker-compose build | ||
|
||
- name: Scan Nginx image with Trivy | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rekono-nginx | ||
format: table | ||
exit-code: 1 | ||
|
||
- name: Scan Kali image with Trivy | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rekono-kali | ||
format: table | ||
exit-code: 1 | ||
|
||
- name: Scan Backend image with Trivy | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rekono-backend | ||
format: table | ||
exit-code: 1 | ||
|
||
- name: Scan Frontend image with Trivy | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rekono-frontend | ||
format: table | ||
exit-code: 1 | ||
|
||
debian-image: | ||
name: Debian Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
working-directory: rekono/frontend | ||
run: npm install . | ||
|
||
- name: Generate Desktop app | ||
working-directory: rekono/frontend | ||
run: npm run electron:build | ||
|
||
- name: Build Docker image | ||
run: docker build --build-arg REKONO_VERSION=dev --file docker/debian/Dockerfile --tag rekono-debian . | ||
|
||
- name: Scan Debian image with Trivy | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rekono-debian | ||
format: table | ||
exit-code: 1 | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Secrets scanning | ||
name: Secrets | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
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
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
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
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
Oops, something went wrong.