~muirrum/crane-discord

b9597c64c485e12191fca845c8e4be5ecac9032c — Cara Salter 3 years ago 84e2b35 master
Update manifests to point to gilwell
M manifests/campmaster-constantine.yml => manifests/campmaster-constantine.yml +1 -1
@@ 25,4 25,4 @@ tasks:
      cargo build --release
  - deploy: |
      cd campmaster-constantine
      scp target/release/campmaster-constantine osalter@kronos.devosmium.xyz:/usr/bot/campmasterconstantine/cc-update
      scp target/release/campmaster-constantine osalter@gilwell.devosmium.xyz:/usr/bot/campmasterconstantine/cc-update

M manifests/infra-bot.yml => manifests/infra-bot.yml +1 -1
@@ 25,4 25,4 @@ tasks:
      cargo build --release
  - deploy: |
      cd crane-discord
      scp target/release/infra-bot osalter@kronos.devosmium.xyz:/usr/bot/infra-bot/infra-update
      scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null target/release/infra-bot osalter@gilwell.devosmium.xyz:/usr/bot/infra-bot/infra-update

M manifests/infra-manifests.yml => manifests/infra-manifests.yml +1 -1
@@ 11,4 11,4 @@ secrets:
tasks:
  - deploy: |
      cd crane-discord
      rsync --delete -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" manifests/ osalter@kronos.devosmium.xyz:/usr/bot/infra-bot/manifests/
      rsync --delete -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" manifests/ osalter@gilwell.devosmium.xyz:/usr/bot/infra-bot/manifests/

A manifests/tdcbot.yml => manifests/tdcbot.yml +28 -0
@@ 0,0 1,28 @@
image: ubuntu/lts
sources:
  - https://git.sr.ht/~muirrum/campmasterconstantine
secrets:
  - 0467a7c3-16d9-491c-9874-807bce4f2616
  - a88c3ffc-9bb0-451e-bf59-ef6198da6754
packages:
- curl
- libssl-dev
- pkg-config

tasks:
  - install-rustup: |
      curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable --profile default -y
      source ~/.cargo/env
  - setup: |
      source ~/.cargo/env
      rustup toolchain install stable
      cd campmasterconstantine
      rustup run stable cargo fetch
  - build: |
      source ~/.cargo/env
      rustup default stable
      cd campmasterconstantine
      cargo build --release
  - deploy: |
      cd campmaster-constantine
      scp target/release/campmaster-constantine osalter@gilwell.devosmium.xyz:/usr/bot/tdcbot/tdc-update