Skip to content

chore: add Barman base image #1

chore: add Barman base image

chore: add Barman base image #1

name: Barman Base Image
on:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
env:
IMAGE_NAME: "gchr.io/cloudnative-pg/plugin-barman-cloud-base"
permissions:
contents: read
packages: write
pull_requests: write

Check failure on line 14 in .github/workflows/barman-base-image.yml

View workflow run for this annotation

GitHub Actions / Barman Base Image

Invalid workflow file

The workflow is not valid. .github/workflows/barman-base-image.yml (Line: 14, Col: 3): Unexpected value 'pull_requests'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to the GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./containers/Dockerfile.barmanbase
push: true
tags: ${{ env.IMAGE_NAME }}:latest
- name: Run Snyk to check Docker image for vulnerabilities
uses: snyk/actions/docker@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: "${{ env.IMAGE_NAME }}:latest"
args: --severity-threshold=high --file=./containers/Dockerfile.barmanbase
-
name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk.sarif