From e9e82d48d7811893564f13085c3752c4c61dff35 Mon Sep 17 00:00:00 2001 From: Michael Rees Date: Thu, 24 Jan 2019 17:55:05 -0600 Subject: [PATCH] Migrate to sr.ht --- .build.yml | 19 +++++++++++++++++++ .gitlab-ci.yml | 27 --------------------------- 2 files changed, 19 insertions(+), 27 deletions(-) create mode 100644 .build.yml delete mode 100644 .gitlab-ci.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..928fd59 --- /dev/null +++ b/.build.yml @@ -0,0 +1,19 @@ +image: alpine/latest +packages: + - go +sources: + - https://git.sr.ht/~reesmichael1/chantpointer +environment: + - deploy: chantpointer@104.248.101.90 +secrets: + - d7ae6197-e2bd-42be-b9b1-5141cf17c01c +tasks: + - test: | + go test + - build: | + go build -o bin/server + - deploy: | + rsync -r bin $deploy:/home/chantpointer/deploy + rsync -r static $deploy:/home/chantpointer/deploy + rsync -r templates $deploy:/home/chantpointer/deploy + ssh $deploy "sudo systemctl restart server" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 0decd4a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,27 +0,0 @@ -stages: - - test - - build - - deploy - -test: - stage: test - script: - - go test - only: - - master - -build: - stage: build - script: - - go build -o bin/server - only: - - master - artifacts: - paths: - - bin/server - -deploy: - stage: deploy - script: sudo systemctl restart server - only: - - master -- 2.45.2