~jae/dn0magik-mc

60966b3a7fa0082aef4387d7e0ec28e8a2cf5051 — Jae Lo Presti (DN0) 1 year, 3 months ago 417d1a4 beep
CI: add 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/dn0magik-mc
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 dn0magik-mc
      sudo docker image build -t reg.jae.fi/jae/mc:latest ./
      sudo docker push reg.jae.fi/jae/mc:latest