Files
wish/.build.yml
Daniel Patterson 90b0eb71ed
Some checks reported errors
builds.sr.ht Job failed
Remember to add secret
2024-01-10 01:33:58 +00:00

35 lines
706 B
YAML

image: debian/stable
packages:
- build-essential
- git
- elixir
- erlang
secrets:
- bc0d4073-54cf-45ae-9542-6dd201b189e4
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 = "refs/heads/ci" ]; then
curl -L https://fly.io/install.sh | sh
export FLYCTL_INSTALL="/home/build/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"
set +x
export FLY_ACCESS_TOKEN=$(cat ~/.fly_secret_key)
set -x
cd wish
flyctl status
else
echo "nothing to do"
fi