docker-devops-helper/.gitea/workflows/main_alpine.yaml

33 lines
723 B
YAML
Raw Normal View History

name: build
2023-07-24 07:03:11 +02:00
on:
push:
branches:
2023-07-24 07:03:11 +02:00
- main
schedule:
- cron: "0 6 * * SUN"
2023-07-24 07:03:11 +02:00
jobs:
Dockerfile lint:
runs-on: k3s
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
with:
2023-11-12 17:17:52 +01:00
dockerfile: Dockerfile/alpine/
2023-07-24 07:03:11 +02:00
build:
runs-on: k3s
needs: Dockerfile lint
2023-07-24 07:03:11 +02:00
steps:
- uses: actions/checkout@v3
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: rogersik/devops-helper
registry: gitea.sikorski.cloud
2023-11-12 17:17:52 +01:00
tag: latest-alpine
cache: true
username: rogersik
password: ${{ secrets.REGISTRY_PASSWORD }}
2023-11-12 17:17:52 +01:00
build_file: dockerfile/aline/Dockerfile