add image build
This commit is contained in:
commit
fbefcd91b4
19
.editorconfig
Normal file
19
.editorconfig
Normal 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
|
||||||
27
.gitea/workflows/docker-build.yml
Normal file
27
.gitea/workflows/docker-build.yml
Normal 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
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
**/.idea/
|
||||||
|
node_modules/
|
||||||
8
image/Dockerfile
Normal file
8
image/Dockerfile
Normal 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
5
image/entrypoint.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FPMOPTS="${INPUT_FPM_OPTS}" fpm $@
|
||||||
Loading…
Reference in New Issue
Block a user