~mser/d2-holy-grail-docker

ref: e6f4df577258c62236faa3311823ed18a5d40ec5 d2-holy-grail-docker/.build.yml -rw-r--r-- 783 bytes
e6f4df57Michael Serajnik Import project 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: alpine/latest
packages:
  - docker
sources:
  - https://git.sr.ht/~mser/d2-holy-grail-docker
environment:
  project: d2-holy-grail-docker
  docker_image: mserajnik/d2-holy-grail
  docker_username: mserajnik
secrets:
  - 2be455df-9ff9-4803-bf5e-2c65d9d986a5
tasks:
  - setup: |
      sudo addgroup $(whoami) docker
      sudo service docker start
  - build: |
      cd $project

      set +e

      docker_ps_return=1
      until [ ${docker_ps_return} -eq 0 ]; do
        docker ps >/dev/null 2>&1
        docker_ps_return=$?
        sleep 1
      done

      set -e

      docker build . -t $docker_image:latest
  - publish: |
      cat ~/.docker-hub-personal-access-token | docker login --username $docker_username --password-stdin
      docker push $docker_image --all-tags