aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-25 19:06:59 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-12-25 19:40:50 +0100
commite04eeb1a286311bf686ec592b6d9bb54e9afb54e (patch)
tree595736f53ced5d7a790bbda5691a3a50c2fb2f27
parent249e35361910d1dbb0b6f03fc1e1db0be119d185 (diff)
downloadtres-master.tar.gz
tres-master.tar.bz2
tres-master.zip
feat: Move to deploy tar ballHEADmaster
This will be used to create an APK later.
-rw-r--r--.build.yml25
-rw-r--r--build.yml23
2 files changed, 23 insertions, 25 deletions
diff --git a/.build.yml b/.build.yml
deleted file mode 100644
index f5d0756..0000000
--- a/.build.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-image: alpine/latest
-packages:
- - build-base
- - make
- - npm
- - rsync
-
-secrets:
- - 008c4f67-b864-47f8-9790-cd32f2ae8516
-
-environment:
- deploy: builds@gabrielgio.me
-
-tasks:
- - setup: |
- sudo npm install html-minifier -g
- - build: |
- cd tres
- make
- - deploy: |
- cd tres
- sshopts="ssh -o StrictHostKeyChecking=no"
- rsync --rsh="$sshopts" -rP public/* $deploy:/var/www/tres.gabrielgio.me/
-
-
diff --git a/build.yml b/build.yml
new file mode 100644
index 0000000..60231cc
--- /dev/null
+++ b/build.yml
@@ -0,0 +1,23 @@
+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
+