From 7647fc5820381b9303d171595913a594fe689a05 Mon Sep 17 00:00:00 2001 From: richardrobertreitz Date: Fri, 6 Dec 2024 10:24:44 +0000 Subject: [PATCH] Update .github/workflows/.github-ci.yaml --- .github/workflows/.github-ci.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/.github-ci.yaml b/.github/workflows/.github-ci.yaml index b83f428..a7ac41a 100644 --- a/.github/workflows/.github-ci.yaml +++ b/.github/workflows/.github-ci.yaml @@ -7,12 +7,16 @@ jobs: container: image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/kaniko:v1.23.2-2 steps: - #- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - #- name: Check out repository code - # uses: actions/checkout@v3 - # checkout repository - - name: build - uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/build/.github/workflows/build-docker.yml@main - with: - dockerfile: './Dockerfile' + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - name: Clone Repository + uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main + - name: Build Credentials File + run: | + mkdir -p /kaniko/.docker + AUTHSTRING=$(echo -n "${{ inputs.username }}:${{ inputs.password }}" | base64) + echo "{\"auths\":{\"${{ inputs.registry }}\":{\"auth\":\"${AUTHSTRING}\"}}}" > /kaniko/.docker/config.json + + - name: Build Docker Container + run: | + /kaniko/executor --dockerfile=${{ inputs.dockerfile }} --context=${{ inputs.context }} --destination=${{ inputs.tag }}