add image build

This commit is contained in:
David Hiendl 2023-12-24 14:02:52 +01:00
commit fbefcd91b4
5 changed files with 61 additions and 0 deletions

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
root = true
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline = true
indent_style=space
indent_size=2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
[Makefile]
indent_style = tab
[Dockerfile]
indent_style = space

View File

@ -0,0 +1,27 @@
name: Docker Build
on: push
env:
ACTIONS_STEP_DEBUG: "true"
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: https://gitea.dhswt.de/actions/docker-fix-socket-perm@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: https://gitea.dhswt.de/actions/docker@master
with:
ci_registry_password: ${{ secrets.RELEASE_TOKEN }}
docker_multiarch: true
docker_context_dir: image/

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
**/.idea/
node_modules/

8
image/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM ruby:2
RUN apk --no-cache add build-base rpm tar zip
RUN gem install --no-document fpm -v 1.11.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

5
image/entrypoint.sh Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
set -e
FPMOPTS="${INPUT_FPM_OPTS}" fpm $@