commit 377159556673d241e5382a8982fa7741bf658bec Author: Sven Heidemann Date: Mon Nov 6 21:10:38 2023 +0100 Added stuff diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..1715ed7 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,27 @@ +name: Deploy on push +run-name: Deploy on push +on: + push: + branches: + - master + +jobs: + on-push-deploy_sh-edraft: + runs-on: [dobby.sh-edraft.de, ubuntu-latest] + container: catthehacker/ubuntu:act-latest + steps: + - name: Setup docker + uses: https://github.com/papodaca/install-docker-action@main + - run: docker -v + + - name: Clone Repository + uses: https://github.com/actions/checkout@v3 + with: + token: ${{ secrets.CI_ACCESS_TOKEN }} + submodules: true + + - name: Build act-runner image + run: | + docker image prune -f + chmod +x build + ./build diff --git a/build b/build new file mode 100755 index 0000000..1cab0a1 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build -t sh-edraft.de/act-runner:latest . \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..345e0ff --- /dev/null +++ b/dockerfile @@ -0,0 +1,15 @@ +FROM catthehacker/ubuntu:act-latest +RUN sudo apt update +RUN sudo apt upgrade -y +RUN sudo apt install -y nano curl wget zip unzip tree + +# install python3.10 +RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev && \ + wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && \ + tar -xf Python-3.10.*.tgz && \ + cd Python-3.10.*/ && \ + ./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \ + make -j $(nproc) && \ + sudo make altinstall && \ + python3.10 -m pip install --user --upgrade pip && \ + cd ../ && sudo rm -rf Python-3.10.*/ \ No newline at end of file