forgejo workflow uses complete image now
Some checks are pending
ci-workflow / ci (push) Waiting to run

This commit is contained in:
franz.germann1 2024-12-12 09:35:58 +01:00
parent c502b65940
commit 65ed6d6120

View file

@ -1,23 +1,32 @@
name: ci-workflow name: ci-workflow
on: [push] on: [push]
jobs: jobs:
ci: ci:
runs-on: docker runs-on: ubuntu-latest
container: container:
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/kaniko:v1.23.2-2 image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/complete:latest
steps: steps:
- uses: actions/checkout@v3
- name: Clone Repository
- name: Build and push 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: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/${{ github.repository }}/cache golangci-lint run ./... --out-format=json --timeout 5m --issues-exit-code 1
credentials: |
https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/v1/=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }} - name: Build Credentials File
destinations: | run: |
forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/${{ github.repository }}:latest mkdir -p /kaniko/.docker
push: 'true' AUTHSTRING=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64)
echo "{\"auths\":{\"https://gitea.cnoe.localtest.me\":{\"auth\":\"${AUTHSTRING}\"}}}" > /kaniko/.docker/config.json
- name: Build Docker Container
run: |
/kaniko/executor --skip-tls-verify --dockerfile=./Dockerfile --context=. --destination=gitea.cnoe.localtest.me/giteaadmin/fib:v0.0.1
- name: trivy
run: |
trivy ...