Compare commits
4 commits
developmen
...
runner-din
Author | SHA1 | Date | |
---|---|---|---|
eff506729b | |||
0ce0ceb087 | |||
b2d6e6f28f | |||
da86126a62 |
1 changed files with 18 additions and 25 deletions
37
.github/workflows/.github-ci.yaml
vendored
37
.github/workflows/.github-ci.yaml
vendored
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue