~whereswaldon/sprout-go

ee4d00dac0258e0bf573d00e8064d7d1378aea89 — Chris Waldon 7 months ago d7b8030
ci/cd: automatically deploy new relay builds to arbor.chat
1 files changed, 7 insertions(+), 0 deletions(-)

M .builds/arch.yml
M .builds/arch.yml => .builds/arch.yml +7 -0
@@ 8,6 8,7 @@ environment:
  github_mirror_url: "git@github.com:arborchat/sprout-go.git"
secrets:
  - 82666cbf-0a25-4083-81d4-5f65fb85ec82
  - 409bbfeb-afb8-4f22-bd08-54fd4cf748d5
  - 3f11ff14-dff1-45ca-990c-c69873656f63
tasks:
  - test: |


@@ 24,3 25,9 @@ tasks:
  - mirror_to_github: |
      cd sprout-go
      ./.builds/mirror.sh "$github_mirror_url"
  - deploy: |
      cd sprout-go/cmd/relay
      go build
      scp relay chris@arbor.chat:/usr/local/bin/relay-new
      ssh chris@arbor.chat -- "mv /usr/local/bin/relay{,-old}; mv /usr/local/bin/relay{-new,}"