~jae/gh-bot

865140ca3f120911291fd5d3f183192bdba6ed11 — Jae Lo Presti (DN0) 1 year, 5 months ago 5068962 main
CI: add docker build
1 files changed, 22 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +22 -0
@@ 0,0 1,22 @@
arch: x86_64
image: archlinux
packages:
  - docker
secrets:
  -  88343b8e-5e4e-4088-ba2e-5efc27d8f584
environment:
  DOCKER_USER: 'jae'
sources:
  - https://git.sr.ht/~jae/gh-bot
tasks:
  - build: |
      sudo mount -t tmpfs -o size=4G /dev/null /dev/shm
      sudo systemctl start docker
      sleep 2
      sudo nohup dockerd --bip 172.18.0.1/16 </dev/null >/dev/null 2>&1 &
      sudo usermod -aG docker $(whoami)
      sleep 10
      cat ~/docker_reg_pass | sudo docker login -u "$DOCKER_USER" --password-stdin=true reg.jae.fi
      cd gh-bot
      sudo docker image build -t reg.jae.fi/jae/ghbot:latest ./
      sudo docker push reg.jae.fi/jae/ghbot:latest