added build of ubuntu image
Some checks failed
build / build (push) Successful in 1m30s
build / Dockerfile lint (push) Failing after 7s

This commit is contained in:
Roger Sikorski 2023-11-12 17:17:52 +01:00
parent e6bf1689bc
commit d8644e1fa6
Signed by: RogerSik
GPG Key ID: 207958C85208EAC4
6 changed files with 78 additions and 4 deletions

View File

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

View File

@ -0,0 +1,9 @@
# https://hub.docker.com/_/alpine
FROM ubuntu:22.04
RUN apt update && \
apt install -y nano mc micro rsync ncdu git curl
COPY ./bin/ /usr/local/bin
ENTRYPOINT ["sleep", "infinity"]