DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: 08cdeb9c3b158d371dfa572be86655ebeef21beb tixe/.build.yml -rw-r--r-- 744 bytes
08cdeb9cJonni Liljamo fix: update tag check in ci again 1 year, 1 month 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
image: alpine/edge
packages:
  - docker
sources:
  - https://git.src.quest/~skye/tixe
environment:
  project: tixe
secrets:
  - ef58262b-f72b-460f-b417-42aed24fc67e
tasks:
  - checks: |
      cd $project
      if (echo "$(git describe --tag)" | grep -v -Eq "^[0-9]+[.][0-9]+[.][0-9]+$"); then complete-build; fi
  - setup: |
      sudo rc-service docker start
      sudo addgroup $(whoami) docker
  - build: |
      cd $project
      export VERSION=$(git describe --tags)
      docker build -t liljamo/tixe:"$VERSION" . --build-arg VERSION="$VERSION"
  - push: |
      cd $project
      export VERSION=$(git describe --tags)
      docker login --username liljamo --password-stdin < ~/.docker-hub-token
      docker push liljamo/tixe:"$VERSION"