diff --git a/.github/.github-ci.yaml b/.github/.github-ci.yaml new file mode 100644 index 0000000..0bcbc95 --- /dev/null +++ b/.github/.github-ci.yaml @@ -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