33 lines
800 B
YAML
33 lines
800 B
YAML
|
---
|
||
|
name: docker-build main
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 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: Kaniko build
|
||
|
# https://github.com/aevea/action-kaniko/releases
|
||
|
uses: aevea/action-kaniko@v0.12.0
|
||
|
with:
|
||
|
image: rogersik/ubuntu-xrdp
|
||
|
registry: gitea.sikorski.cloud
|
||
|
tag: 'latest'
|
||
|
# tag_with_latest: true # https://github.com/aevea/action-kaniko/issues/66
|
||
|
cache: true
|
||
|
username: rogersik
|
||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|