added build of ubuntu image #7

Merged
RogerSik merged 4 commits from feature/build-additional-ubuntu-image into main 2023-11-12 17:28:40 +01:00
6 changed files with 78 additions and 4 deletions
Showing only changes of commit d8644e1fa6 - Show all commits

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

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"]