Skip to content

ROX-21124: Move non-e2e testing OSCI jobs to GitHub Actions #13

ROX-21124: Move non-e2e testing OSCI jobs to GitHub Actions

ROX-21124: Move non-e2e testing OSCI jobs to GitHub Actions #13

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
scanner-build:
runs-on: ubuntu-latest
container:
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/job-preamble
- name: genesis-dump
run: |
source ./scripts/ci/lib.sh
generate_genesis_dump
- name: db-dump
run: |
source ./scripts/ci/lib.sh
generate_db_dump
- name: build-bundle
run: |
source ./scripts/ci/lib.sh
build_bundle
- name: scanner-db-bundle
run: |
source ./scripts/ci/lib.sh
build_db_bundle
- name: Build scanner image
run: |
docker build -t scanner:"$(make --quiet tag)" -f image/scanner/rhel/Dockerfile image/scanner/rhel
- name: Build scanner-slim image
run: |
docker build -t scanner-slim:"$(make --quiet tag)" -f image/scanner/rhel/Dockerfile.slim image/scanner/rhel
- name: Build scanner-db image
run: |
docker build -t scanner-db:"$(make --quiet tag)" -f image/db/rhel/Dockerfile image/db/rhel
- name: Build scanner-db-slim image
run: |
docker build -t scanner-db-slim:"$(make --quiet tag)" -f image/db/rhel/Dockerfile.slim image/db/rhel