adds .github-ci.yaml
This commit is contained in:
parent
6a88aeb484
commit
741cddf2f7
1 changed files with 38 additions and 0 deletions
38
.github/.github-ci.yaml
vendored
Normal file
38
.github/.github-ci.yaml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name: ci-workflow
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- IPCEICIS-760_Port_ArgoWorkflow_to_Forgejo_Actions
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in a new issue