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
+secrets:
+ - 41d1f8d0-2205-4955-939a-91219e22d2c1
+ - 1cdce002-5269-4cf8-8d59-2ef4d9ad4f77
+sources:
+ - git@git.src.quest:~skye/liljamo-dev-zola
+tasks:
+ - setup: |
+ sudo rc-service docker start
+ sudo addgroup $(whoami) docker
+ docker login https://registry.liljamo.dev --username skyeci --password-stdin < ~/.uwulpine-registry-pwd
+ - build: |
+ cd liljamo-dev-zola
+ export COMMIT=$(git log -1 --pretty=%h)
+ docker build -t registry.liljamo.dev/skye/liljamo-dev-zola:latest -t registry.liljamo.dev/skye/liljamo-dev-zola:"$COMMIT" .
+ - push: |
+ cd liljamo-dev-zola
+ export COMMIT=$(git log -1 --pretty=%h)
+ docker push registry.liljamo.dev/skye/liljamo-dev-zola:latest
+ docker push registry.liljamo.dev/skye/liljamo-dev-zola:"$COMMIT"