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