fibonacci_pipeline_buildx/.github/.github-ci.yaml

35 lines
1.3 KiB
YAML

name: ci-workflow
on: [push]
jobs:
ci:
steps:
# checkout repository
- name: checkout
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout/action.yml@main
# with:
# ref: main # Specify the branch or tag in the templates repository
# linting with Trivy
- name: lint
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/lint/.github/workflows/golang-ci-lint.yml@main
with:
source: "./"
# build and publish image
- name: build
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/build/.github/workflows/build-docker.yml@main
with:
dockerfile: './Dockerfile'
context: './shared-data/repo/'
tag: 'gitea.cnoe.localtest.me/giteaadmin/fibonacci_go:latest'
registry: 'gitea.cnoe.localtest.me'
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
# vulnerability scanning with Trivy
- name: vulnerability-scan
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/vulnerability-scan/.github/workflows/trivy-image-scan.yml@main
with:
image: gitea.cnoe.localtest.me/giteaadmin/fibonacci_go:latest # Specify Docker image name