From ef712a9482361bb4f7e43010c03271077ac83eee Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Wed, 19 Apr 2023 14:24:54 +0200 Subject: [PATCH] docker build --- .gitea/workflows/build_docker.yaml | 24 ++++++++++++++++++++++++ Dockerfile | 8 ++++++++ 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/build_docker.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml new file mode 100644 index 0000000..e0930ca --- /dev/null +++ b/.gitea/workflows/build_docker.yaml @@ -0,0 +1,24 @@ +name: Publish Docker +run-name: ${{ github.actor }} is building ${{ github.repository }} +on: + push: + branches: + - main + +jobs: + Publish-Docker: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: https://github.com/actions/checkout@v3 + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v2 + + - name: Build and push + uses: https://github.com/docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + push: false + tags: ${{ github.repository }}:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0a378c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:3.17 + +RUN apk update && apk add rust cargo openssl-dev +ENV PATH="/root/.cargo/bin:${PATH}" + +RUN cargo install --index https://git.raptorpond.com/henine/_cargo-index.git rulebot + +CMD ["rulebot"] \ No newline at end of file