added build of ubuntu image (#7)
Some checks failed
build / build (push) Has been skipped
build / Dockerfile lint (push) Failing after 10s

Reviewed-on: #7
This commit is contained in:
2023-11-12 17:28:39 +01:00
parent e6bf1689bc
commit 7eafeef093
7 changed files with 90 additions and 10 deletions

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
dockerfile: dockerfile/alpine/Dockerfile
build:
runs-on: k3s
@ -24,7 +24,8 @@ jobs:
with:
image: rogersik/devops-helper
registry: gitea.sikorski.cloud
tag: development
tag: dev-alpine
cache: true
username: rogersik
password: ${{ secrets.REGISTRY_PASSWORD }}
build_file: dockerfile/alpine/Dockerfile

View File

@ -0,0 +1,31 @@
name: build
on:
push:
branches-ignore:
- main
jobs:
Dockerfile lint:
runs-on: k3s
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: dockerfile/ubuntu/Dockerfile
build:
runs-on: k3s
# needs: Dockerfile lint # lets process faster pull-requests
steps:
- uses: actions/checkout@v3
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: rogersik/devops-helper
registry: gitea.sikorski.cloud
tag: dev-ubuntu
cache: true
username: rogersik
password: ${{ secrets.REGISTRY_PASSWORD }}
build_file: dockerfile/ubuntu/Dockerfile

View File

@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
dockerfile: Dockerfile/alpine/
build:
runs-on: k3s
@ -25,7 +25,8 @@ jobs:
with:
image: rogersik/devops-helper
registry: gitea.sikorski.cloud
tag: latest
tag: latest-alpine
cache: true
username: rogersik
password: ${{ secrets.REGISTRY_PASSWORD }}
build_file: dockerfile/aline/Dockerfile

View File

@ -0,0 +1,32 @@
name: build
on:
push:
branches:
- main
schedule:
- cron: "0 6 * * SUN"
jobs:
Dockerfile lint:
runs-on: k3s
steps:
- uses: actions/checkout@v3
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile/ubuntu/
build:
runs-on: k3s
needs: Dockerfile lint
steps:
- uses: actions/checkout@v3
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: rogersik/devops-helper
registry: gitea.sikorski.cloud
tag: latest-ubuntu
cache: true
username: rogersik
password: ${{ secrets.REGISTRY_PASSWORD }}
build_file: dockerfile/aline/Dockerfile