diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..d966e64 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build Hastebin Ownercz Image +run-name: Build hastebin Ownercz image and publish +on: [push] +jobs: + Build-Hastebin-Image: + runs-on: ubuntu-latest + steps: + - name: Prepare | Setup git + run: | + git config --global user.name "Radim LipovĨan" + git config --global user.email "radim@lipovcan.cz" + - name: Check out repository code + uses: actions/checkout@v3 + - name: Build | Install Docker + run: | + apt-get update && apt-get install docker.io -y + git clone https://git.lipovcan.cz/Upstream/haste-server.git haste + - name: Build | Show repository + run: | + cd haste && ls -lah + - name: Docker | Build image and login to Docker Hub with publication + run: | + cd haste + echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin + ls -lah + docker build -t ownercz/hastebin:latest . + docker push ownercz/hastebin