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"