Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Add Docker development environment and initial configuration files #2

Add Docker development environment and initial configuration files

Add Docker development environment and initial configuration files #2

---
name: Docker image build and scan
on:
push:
branches:
- main
pull_request: null
permissions: {}
jobs:
build:
name: Build and scan image
runs-on: ubuntu-latest
permissions:
actions: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image and load
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: my-app:latest
- name: Scan for vulnerabilities
uses: crazy-max/ghaction-container-scan@v3
with:
image: my-app:latest
dockerfile: ./Dockerfile
severity_threshold: HIGH