Compare commits

...

4 commits

Author SHA1 Message Date
eff506729b Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 5s
2025-02-06 17:59:34 +00:00
0ce0ceb087 Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 5s
2025-02-06 17:57:48 +00:00
b2d6e6f28f Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 4s
2025-02-06 17:55:15 +00:00
da86126a62 Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 35s
2025-02-06 17:54:08 +00:00

View file

@ -1,33 +1,26 @@
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: Debug
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
- name: Lint the Repository
run: | run: |
golangci-lint run ./... --out-format=json --timeout 10m --issues-exit-code 1 echo 1 test 2 ${{ secrets.PACKAGES_USER }} 3 ${{ secrets.REPO_USER }} 4
- name: Build Credentials File - name: Build
run: | uses: https://codeberg.org/umglurf/kaniko-action@main
mkdir -p ~/.docker with:
AUTHSTRING=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64 -w 0) cache: true
echo "{\"auths\":{\"https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live\":{\"auth\":\"${AUTHSTRING}\"}}}" > ~/.docker/config.json cache_repo: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go/cache
credentials: |
- name: Build Docker Container forgejo.edf-bootstrap.cx.fg1.ffm.osc.live=${{ secrets.PACKAGES_USER }}:${{ secrets.PACKAGES_TOKEN }}
run: | destinations: |
KO_DOCKER_REPO="forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go" ko build --bare ./cmd forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/fibonacci_go:1.2.3
push: 'true'
- 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