22 lines
797 B
YAML
22 lines
797 B
YAML
name: ci-workflow
|
|
|
|
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
|
|
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'
|
|
context: '.'
|
|
tag: 'my-registry.com/my-app:latest'
|
|
registry: 'my-registry.com'
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|