update workflow
This commit is contained in:
parent
7bfe307c3b
commit
bec3545bbc
@ -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
3
dockerfiles/alpine
Normal file
@ -0,0 +1,3 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add git gcc musl-dev
|
3
dockerfiles/arch
Normal file
3
dockerfiles/arch
Normal file
@ -0,0 +1,3 @@
|
||||
FROM archlinux:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm git gcc
|
5
dockerfiles/debian
Normal file
5
dockerfiles/debian
Normal 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
7
dockerfiles/void
Normal 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
|
Loading…
x
Reference in New Issue
Block a user