added build of ubuntu image
This commit is contained in:
parent
e6bf1689bc
commit
d8644e1fa6
@ -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
|
31
.gitea/workflows/dev_ubuntu.yaml
Normal file
31
.gitea/workflows/dev_ubuntu.yaml
Normal 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
|
@ -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
|
32
.gitea/workflows/main_ubuntu.yaml
Normal file
32
.gitea/workflows/main_ubuntu.yaml
Normal 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
|
9
dockerfile/ubuntu/Dockerfile
Normal file
9
dockerfile/ubuntu/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user