dotfiles/.woodpecker/release-agent.yml
Nikos Papadakis 5d948f4c19 Add health checking system to agent
Adds a health checking endpoint on the GRPC server. This is a stream that changes whenever a health status update occurs.

Reviewed-on: https://git.nikos.gg/prymn/prymn/pulls/5
Co-authored-by: Nikos Papadakis <nikos@papadakis.xyz>
Co-committed-by: Nikos Papadakis <nikos@papadakis.xyz>
2023-08-12 09:37:01 +00:00

30 lines
756 B
YAML

when:
- event: push
branch: main
matrix:
BUILD_TARGET:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-gnu
steps:
build:
image: git.nikos.gg/prymn/rust/aarch64:latest
commands:
- protoc --version
- cd agent
- cargo build --release --target "${BUILD_TARGET}"
- mkdir -p "dist/${BUILD_TARGET}"
- cp "target/${BUILD_TARGET}/release/prymn_agent" "dist/${BUILD_TARGET}"
release-binaries:
image: woodpeckerci/plugin-s3
settings:
bucket: prymn-static
endpoint: https://75178f9eca227dea51b3db4db2c15a5a.r2.cloudflarestorage.com
access_key:
from_secret: r2_access_key
secret_key:
from_secret: r2_secret_key
source: agent/dist/**/*
target: /