[UI] EVEREST-1608 Fix custom proxy nr validation (#806) #660
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
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
ref: "main" | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.4.0 | |
- name: Run with Node 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "pnpm" | |
cache-dependency-path: ui/pnpm-lock.yaml | |
- name: Build Everest Frontend app | |
run: | | |
cd ui | |
pnpm install | |
EVEREST_OUT_DIR=${GITHUB_WORKSPACE}/public/dist/ pnpm build | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "./go.mod" | |
- name: Build Everest | |
run: | | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make build | |
- name: Setup docker build metadata | |
uses: docker/metadata-action@v5 | |
id: meta | |
with: | |
images: perconalab/everest | |
tags: 0.0.0 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push everest dev image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: "perconalab/everest:0.0.0" | |
format: "table" | |
exit-code: "1" | |
severity: "CRITICAL,HIGH" | |
scan: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: "docker.io/perconalab/everest:0.0.0" | |
format: "table" | |
exit-code: "1" | |
severity: "CRITICAL,HIGH" |