From bfd77ddf319ded02ebeb132559c1eed2be1d862e Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 4 Jun 2022 19:47:50 -0400 Subject: [PATCH] Add deploy step [skip ci] --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8fe5ea5..a5b17fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,10 @@ variables: DOCKER_HOST: tcp://docker:2375 +stages: + - build + - deploy + docker: image: docker:20 stage: build @@ -23,3 +27,14 @@ docker: artifacts: paths: - stream-proxy + +deploy: + image: alpine:latest + stage: deploy + before_script: + - apk update && apk --no-cache add curl git + - wget -O - https://fly.io/install.sh | sh + - git clone https://codeberg.org/video-prize-ranch/fly-cfg.git + script: + - cd fly-cfg + - /root/.fly/bin/flyctl deploy --no-cache --detach \ No newline at end of file