Files
wish/.build.yml
Daniel Patterson 24c6700f73
All checks were successful
builds.sr.ht Job completed
Add deploy step
2024-01-09 23:46:11 +00:00

28 lines
549 B
YAML

image: debian/stable
packages:
- build-essential
- git
- elixir
- erlang
sources:
- git@git.broccoli.town:dp/wish
tasks:
- setup: |
cd wish
mix local.hex --force
mix local.rebar --force
mix deps.get
- test: |
cd wish
mix test
- deploy: |
if [ $GIT_REF = "main" ]; then
curl -L https://fly.io/install.sh | sh
export FLYCTL_INSTALL="/root/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"
cd wish
fly deploy
else
echo "nothing to do"
fi