From 37b5850c918eb144a02353c969d16e9cfd00de19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Fri, 13 Dec 2024 09:02:31 +0100 Subject: [PATCH] Add alpine base images --- .forgejo/workflows/release.yaml | 36 +++++++++++++++---- .forgejo/workflows/release_rebuild.yaml | 36 +++++++++++++++---- Dockerfile-alpine | 6 ++++ Dockerfile-alpine-java21 | 6 ++++ Dockerfile => Dockerfile-ubuntu | 2 -- ...e-cgo => Dockerfile-ubuntu-build-essential | 3 +- Dockerfile-ubuntu-ruby | 7 ++++ README.md | 14 ++++---- 8 files changed, 88 insertions(+), 22 deletions(-) create mode 100644 Dockerfile-alpine create mode 100644 Dockerfile-alpine-java21 rename Dockerfile => Dockerfile-ubuntu (89%) rename Dockerfile-make-cgo => Dockerfile-ubuntu-build-essential (59%) create mode 100644 Dockerfile-ubuntu-ruby diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 71078ca..d921da5 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -32,18 +32,42 @@ jobs: username: ${{ secrets.FORGEJO_USER }} password: ${{ secrets.FORGEJO_TOKEN }} - - name: Build docker image - base + - name: Build - executor-ubuntu uses: docker/build-push-action@v4 with: - file: Dockerfile + file: Dockerfile-ubuntu push: true tags: | - git.myservermanager.com/msm/forgejo-base-executor-image:latest + git.myservermanager.com/msm/executor-ubuntu:latest - - name: Build docker image - make cgo + - name: Build - executor-ubuntu-build-essential uses: docker/build-push-action@v4 with: - file: Dockerfile-make-cgo + file: Dockerfile-ubuntu-build-essential push: true tags: | - git.myservermanager.com/msm/forgejo-base-executor-image-make-cgo:latest + git.myservermanager.com/msm/executor-ubuntu-build-essential:latest + + - name: Build - executor-ubuntu-ruby + uses: docker/build-push-action@v4 + with: + file: Dockerfile-ubuntu-ruby + push: true + tags: | + git.myservermanager.com/msm/executor-ubuntu-ruby:latest + + - name: Build - executor-alpine + uses: docker/build-push-action@v4 + with: + file: Dockerfile-alpine + push: true + tags: | + git.myservermanager.com/msm/executor-alpine:latest + + - name: Build - executor-alpine-java21 + uses: docker/build-push-action@v4 + with: + file: Dockerfile-alpine-java21 + push: true + tags: | + git.myservermanager.com/msm/executor-alpine-java21:latest diff --git a/.forgejo/workflows/release_rebuild.yaml b/.forgejo/workflows/release_rebuild.yaml index b457e2b..fd3785f 100644 --- a/.forgejo/workflows/release_rebuild.yaml +++ b/.forgejo/workflows/release_rebuild.yaml @@ -31,18 +31,42 @@ jobs: username: ${{ secrets.FORGEJO_USER }} password: ${{ secrets.FORGEJO_TOKEN }} - - name: Build docker image - base + - name: Build - executor-ubuntu uses: docker/build-push-action@v4 with: - file: Dockerfile + file: Dockerfile-ubuntu push: true tags: | - git.myservermanager.com/msm/forgejo-base-executor-image:latest + git.myservermanager.com/msm/executor-ubuntu:latest - - name: Build docker image - make cgo + - name: Build - executor-ubuntu-build-essential uses: docker/build-push-action@v4 with: - file: Dockerfile-make-cgo + file: Dockerfile-ubuntu-build-essential push: true tags: | - git.myservermanager.com/msm/forgejo-base-executor-image-make-cgo:latest + git.myservermanager.com/msm/executor-ubuntu-build-essential:latest + + - name: Build - executor-ubuntu-ruby + uses: docker/build-push-action@v4 + with: + file: Dockerfile-ubuntu-ruby + push: true + tags: | + git.myservermanager.com/msm/executor-ubuntu-ruby:latest + + - name: Build - executor-alpine + uses: docker/build-push-action@v4 + with: + file: Dockerfile-alpine + push: true + tags: | + git.myservermanager.com/msm/executor-alpine:latest + + - name: Build - executor-alpine-java21 + uses: docker/build-push-action@v4 + with: + file: Dockerfile-alpine-java21 + push: true + tags: | + git.myservermanager.com/msm/executor-alpine-java21:latest diff --git a/Dockerfile-alpine b/Dockerfile-alpine new file mode 100644 index 0000000..2b42d1f --- /dev/null +++ b/Dockerfile-alpine @@ -0,0 +1,6 @@ +FROM alpine:3.20 +LABEL maintainer="msm " + +RUN <