DEVELOPMENT ENVIRONMENT

~liljamo/tixe

2038e2d07f720be296d0c7ba3d1ecc1dadb51a05 — Jonni Liljamo 11 months ago 9e1c26e 0.1.0
feat: first ci attempt
1 files changed, 22 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +22 -0
@@ 0,0 1,22 @@
image: alpine/edge
packages:
  - docker
sources:
  - https://git.src.quest/~skye/tixe
environment:
  project: tixe
secrets:
  - ef58262b-f72b-460f-b417-42aed24fc67e
tasks:
  - 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"