From bec3545bbc45a4ea816b9e090b538cdc5a318c1e Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Sat, 24 May 2025 21:02:06 +0300 Subject: [PATCH] update workflow --- .gitea/workflows/custom-containers.yaml | 50 ++++++++++++++++++------- dockerfiles/alpine | 3 ++ dockerfiles/arch | 3 ++ dockerfiles/debian | 5 +++ dockerfiles/void | 7 ++++ 5 files changed, 54 insertions(+), 14 deletions(-) create mode 100644 dockerfiles/alpine create mode 100644 dockerfiles/arch create mode 100644 dockerfiles/debian create mode 100644 dockerfiles/void diff --git a/.gitea/workflows/custom-containers.yaml b/.gitea/workflows/custom-containers.yaml index e9d947a..045c57b 100644 --- a/.gitea/workflows/custom-containers.yaml +++ b/.gitea/workflows/custom-containers.yaml @@ -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 diff --git a/dockerfiles/alpine b/dockerfiles/alpine new file mode 100644 index 0000000..1241cee --- /dev/null +++ b/dockerfiles/alpine @@ -0,0 +1,3 @@ +FROM alpine:latest + +RUN apk add git gcc musl-dev diff --git a/dockerfiles/arch b/dockerfiles/arch new file mode 100644 index 0000000..b96cd14 --- /dev/null +++ b/dockerfiles/arch @@ -0,0 +1,3 @@ +FROM archlinux:latest + +RUN pacman -Syu --noconfirm git gcc diff --git a/dockerfiles/debian b/dockerfiles/debian new file mode 100644 index 0000000..53e1752 --- /dev/null +++ b/dockerfiles/debian @@ -0,0 +1,5 @@ +FROM debian:latest + +RUN apt update +RUN apt upgrade +RUN apt install -y git gcc diff --git a/dockerfiles/void b/dockerfiles/void new file mode 100644 index 0000000..1655287 --- /dev/null +++ b/dockerfiles/void @@ -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