From dc81e33f760b45778f2646d6f1a7c9e8166b2fe5 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 22 Jul 2022 16:11:20 +0200 Subject: ref: Move env var Move enviroment variables to the build manifest. --- Makefile | 2 +- build.yml | 6 ++++-- 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 -- cgit v1.2.3