~evanj/e3

ref: 7cd764904819b2398785714c6b12ddbfd4b1fe47 e3/.build.yml -rw-r--r-- 375 bytes
7cd76490Evan M Jones Feat(builds): Adding deploy hook to build, noop atm. 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
image: ubuntu/latest
arch: amd64
packages:
  - golang
  - make
sources:
  - https://git.sr.ht/~evanj/e3
tasks:
  - build: |
      cd e3
      touch .env
      make builddeps
      export PATH="$PATH:$HOME/go/bin"
      make gen
      make build
      deploy_it() {
        ls -l e3
      }
      if [ `git branch | grep '\*' | awk '{print$2}'`="master" ]; then deploy_it; fi