1
0

update workflow
All checks were successful
Build / build-alpine (push) Successful in 9s
Build / build-arch (push) Successful in 18s
Build / build-debian (push) Successful in 43s
Build / build-void (push) Successful in 42s

This commit is contained in:
ІО-23 Шмуляр Олег 2025-05-24 21:02:06 +03:00
parent 7bfe307c3b
commit bec3545bbc
5 changed files with 54 additions and 14 deletions

View File

@ -2,22 +2,44 @@ name: build-containers
on:
workflow_dispatch:
inputs:
required:
description: a required input
required: true
with_default:
description: an input with default
required: false
default: default
boolean:
description: an input of type boolean
required: false
type: boolean
jobs:
build-debian:
runs-on: hardware
steps:
- run: echo "helo ${{ required }}"
- run: docker pull debian
- name: Pull latest official image
run: docker pull debian
- name: Build new image
run: docker build . -f dockerfiles/debian -t 10.5.1.5:5000/prebuilt-images/debian
- name: Push new image to local container registry
run: docker push 10.5.1.5:5000/prebuilt-images/debian
build-arch:
runs-on: hardware
steps:
- name: Pull latest official image
run: docker pull archlinux
- name: Build new image
run: docker build . -f dockerfiles/arch -t 10.5.1.5:5000/prebuilt-images/arch
- name: Push new image to local container registry
run: docker push 10.5.1.5:5000/prebuilt-images/arch
build-void:
runs-on: hardware
steps:
- name: Pull latest official image
run: docker pull voidlinux/voidlinux
- name: Build new image
run: docker build . -f dockerfiles/void -t 10.5.1.5:5000/prebuilt-images/void
- name: Push new image to local container registry
run: docker push 10.5.1.5:5000/prebuilt-images/void
build-alpine:
runs-on: hardware
steps:
- name: Pull latest official image
run: docker pull alpine
- name: Build new image
run: docker build . -f dockerfiles/alpine -t 10.5.1.5:5000/prebuilt-images/alpine
- name: Push new image to local container registry
run: docker push 10.5.1.5:5000/prebuilt-images/alpine

3
dockerfiles/alpine Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:latest
RUN apk add git gcc musl-dev

3
dockerfiles/arch Normal file
View File

@ -0,0 +1,3 @@
FROM archlinux:latest
RUN pacman -Syu --noconfirm git gcc

5
dockerfiles/debian Normal file
View File

@ -0,0 +1,5 @@
FROM debian:latest
RUN apt update
RUN apt upgrade
RUN apt install -y git gcc

7
dockerfiles/void Normal file
View File

@ -0,0 +1,7 @@
FROM voidlinux/voidlinux
RUN echo 'repository=https://repo-default.voidlinux.org/current' > /etc/xbps.d/00-repository-main.conf
RUN xbps-install -S
RUN xbps-install -yu xbps
RUN xbps-install -yu
RUN xbps-install -y git gcc