Update .github/workflows/.github-ci.yaml
Some checks failed
ci-workflow / ci (push) Failing after 6m14s
Some checks failed
ci-workflow / ci (push) Failing after 6m14s
This commit is contained in:
parent
64cacf7ed0
commit
31fedf39f2
1 changed files with 21 additions and 13 deletions
34
.github/workflows/.github-ci.yaml
vendored
34
.github/workflows/.github-ci.yaml
vendored
|
@ -4,20 +4,28 @@ on: [push]
|
|||
jobs:
|
||||
ci:
|
||||
runs-on: docker
|
||||
|
||||
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:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Clone Repository
|
||||
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
||||
- uses: docker/metadata-action@v3
|
||||
id: metadata
|
||||
with:
|
||||
images: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/${{ github.repository }}
|
||||
|
||||
- name: Build Credentials File
|
||||
run: |
|
||||
mkdir -p /kaniko/.docker
|
||||
AUTHSTRING=$(echo -n "${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_PASSWORD }}" | base64 -w 0)
|
||||
echo "{\"auths\":{\"https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live\":{\"auth\":\"${AUTHSTRING}\"}}}" > /kaniko/.docker/config.json
|
||||
|
||||
- name: Build and push Docker Container
|
||||
run: |
|
||||
/kaniko/executor --dockerfile=./Dockerfile --context=. --destination=forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw/fibonacci_go:v0.0.1
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
registry: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- uses: int128/kaniko-action@v1
|
||||
with:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue