Update .github/workflows/.github-ci.yaml

This commit is contained in:
richardrobertreitz 2024-12-06 13:19:50 +00:00
parent 64cacf7ed0
commit 31fedf39f2

View file

@ -4,20 +4,28 @@ on: [push]
jobs: jobs:
ci: ci:
runs-on: docker runs-on: docker
container: container:
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/kaniko:v1.23.2-2 image: ghcr.io/catthehacker/ubuntu:full-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - uses: actions/checkout@v3
- name: Clone Repository - uses: docker/metadata-action@v3
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main id: metadata
with:
images: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/${{ github.repository }}
- name: Build Credentials File - uses: docker/login-action@v1
run: | with:
mkdir -p /kaniko/.docker registry: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live
AUTHSTRING=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64 -w 0) username: ${{ secrets.REGISTRY_USERNAME }}
echo "{\"auths\":{\"https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live\":{\"auth\":\"${AUTHSTRING}\"}}}" > /kaniko/.docker/config.json password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker Container - uses: int128/kaniko-action@v1
run: | with:
/kaniko/executor --dockerfile=./Dockerfile --context=. --destination=forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw/fibonacci_go:v0.0.1 push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache: true
cache-repository: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/${{ github.repository }}/cache