~reesmichael1/chantpointer

e9e82d48d7811893564f13085c3752c4c61dff35 — Michael Rees 4 years ago 58d3464
Migrate to sr.ht
2 files changed, 19 insertions(+), 27 deletions(-)

A .build.yml
D .gitlab-ci.yml
A .build.yml => .build.yml +19 -0
@@ 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"

D .gitlab-ci.yml => .gitlab-ci.yml +0 -27
@@ 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