Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 7s
Some checks failed
ci-workflow / ci (push) Failing after 7s
This commit is contained in:
parent
f15c03ac6d
commit
7647fc5820
1 changed files with 12 additions and 8 deletions
20
.github/workflows/.github-ci.yaml
vendored
20
.github/workflows/.github-ci.yaml
vendored
|
@ -7,12 +7,16 @@ jobs:
|
||||||
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/pipeline-container/kaniko:v1.23.2-2
|
||||||
steps:
|
steps:
|
||||||
#- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||||
#- name: Check out repository code
|
- name: Clone Repository
|
||||||
# uses: actions/checkout@v3
|
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
||||||
# 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'
|
|
||||||
|
|
||||||
|
- 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 }}
|
||||||
|
|
Loading…
Reference in a new issue