image: alpine/latest packages: - rsync secrets: - 008c4f67-b864-47f8-9790-cd32f2ae8516 environment: build: builds@gabrielgio.me artifact: artifacts.gabrielgio.me/archive/tres/ version: 0.1.0 tasks: - archive: | cd tres git archive \ -o tres-$version.tar.gz \ --prefix=tres-$version/ HEAD - deploy_archive: | cd tres sshopts="ssh -o StrictHostKeyChecking=no" rsync --mkpath --rsh="$sshopts" -rP *.tar.* $build:/var/www/$artifact