aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-07-22 16:11:20 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-07-22 16:11:20 +0200
commitdc81e33f760b45778f2646d6f1a7c9e8166b2fe5 (patch)
tree4f1abddb72d41f09102e5621f0ccc5ec9a4b42b5
parentc430ebff167dcfc073c1c6a3375d6284936218a7 (diff)
downloadmdir-dc81e33f760b45778f2646d6f1a7c9e8166b2fe5.tar.gz
mdir-dc81e33f760b45778f2646d6f1a7c9e8166b2fe5.tar.bz2
mdir-dc81e33f760b45778f2646d6f1a7c9e8166b2fe5.zip
ref: Move env var
Move enviroment variables to the build manifest.
-rw-r--r--Makefile2
-rw-r--r--build.yml6
2 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 43e0f57..29f6fd9 100644
--- a/Makefile
+++ b/Makefile
@@ -4,4 +4,4 @@ build:
go build -ldflags="-X 'main.Version=${VERSION}'"
tar: build
- XZ_OPT=-9 tar -cvf midr-${VERSION}.tar.xz midr templates/
+ tar -cvf midr-${VERSION}.tar.xz midr templates/
diff --git a/build.yml b/build.yml
index 3bb5c8e..cb918cc 100644
--- a/build.yml
+++ b/build.yml
@@ -1,5 +1,5 @@
# this build is meant to be submitted manually
-image: fedora/36
+image: alpine/latest
packages:
- rsync
- make
@@ -14,13 +14,15 @@ secrets:
environment:
deploy: builds@gabrielgio.me
target: artifacts.gabrielgio.me/midr
+ GOPROXY: direct
+ XZ_OPT: -9
tasks:
- build: |
cd midr
make tar
- deploy: |
- cd jnfilter
+ cd midr
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP *.tar.xz $deploy:/var/www/$target