34 lines
850 B
YAML
34 lines
850 B
YAML
name: docker-monica-build development
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- main # Läuft auf allen Branches außer `main`
|
|
|
|
jobs:
|
|
dockerfile_lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: hadolint/hadolint-action@v3.1.0
|
|
with:
|
|
dockerfile: Dockerfile
|
|
|
|
build:
|
|
needs: dockerfile_lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Extract Branch Name
|
|
id: branch_name
|
|
run: echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
|
|
- name: Kaniko build
|
|
uses: aevea/action-kaniko@v0.12.0
|
|
with:
|
|
image: rogersik/monica
|
|
registry: gitea.sikorski.cloud
|
|
tag: "${{ env.BRANCH_NAME }}"
|
|
cache: true
|
|
username: rogersik
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|