Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 4s
Some checks failed
ci-workflow / ci (push) Failing after 4s
This commit is contained in:
parent
da4dd2789c
commit
bee6878f5c
1 changed files with 15 additions and 26 deletions
37
.github/workflows/.github-ci.yaml
vendored
37
.github/workflows/.github-ci.yaml
vendored
|
@ -1,33 +1,22 @@
|
||||||
name: ci-workflow
|
name: ci-workflow
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
container:
|
|
||||||
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/complete:v0.0.3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Clone Repository
|
- name: Build
|
||||||
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
uses: https://codeberg.org/umglurf/kaniko-action@main
|
||||||
|
with:
|
||||||
- name: Lint the Repository
|
cache: true
|
||||||
run: |
|
cache_repo: gitea.runner.c-one-infra.de/giteaadmin/rtest/cache
|
||||||
golangci-lint run ./... --out-format=json --timeout 10m --issues-exit-code 1
|
credentials: |
|
||||||
|
gitea.runner.c-one-infra.de=${{ secrets.PACKAGES_USER }}:${{ secrets.PACKAGES_TOKEN }}
|
||||||
- name: Build Credentials File
|
destinations: |
|
||||||
run: |
|
gitea.runner.c-one-infra.de/giteaadmin/rtest:latest
|
||||||
mkdir -p ~/.docker
|
push: 'true'
|
||||||
AUTHSTRING=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64 -w 0)
|
|
||||||
echo "{\"auths\":{\"https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live\":{\"auth\":\"${AUTHSTRING}\"}}}" > ~/.docker/config.json
|
|
||||||
|
|
||||||
- name: Build Docker Container
|
|
||||||
run: |
|
|
||||||
KO_DOCKER_REPO="forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go" ko build --bare ./cmd
|
|
||||||
|
|
||||||
- name: Vulnerability Scanning
|
|
||||||
run: |
|
|
||||||
trivy image --scanners license,vuln,secret forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go:latest
|
|
||||||
trivy image --image-config-scanners secret,misconfig forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go:latest
|
|
||||||
|
|
Loading…
Reference in a new issue