From 40d80bde511a7a76a0f5a3c16afc9eef2e5972e2 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 24 Jul 2022 22:46:51 +0200 Subject: fix: Using git to archive Now it uses git to better archive the tar ball. Source: - https://git.sr.ht/~sircmpwn/hub.sr.ht/tree/master/item/.builds/alpine.yml#L25 --- Makefile | 4 +++- build.yml | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 29f6fd9..398cdc3 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,6 @@ build: go build -ldflags="-X 'main.Version=${VERSION}'" tar: build - tar -cvf midr-${VERSION}.tar.xz midr templates/ + git archive \ + -o midr-${VERSION}.tar.gz \ + --prefix=midr-${VERSION}/ HEAD diff --git a/build.yml b/build.yml index cb918cc..ec137a9 100644 --- a/build.yml +++ b/build.yml @@ -13,7 +13,7 @@ secrets: environment: deploy: builds@gabrielgio.me - target: artifacts.gabrielgio.me/midr + target: artifacts.gabrielgio.me/midr/ GOPROXY: direct XZ_OPT: -9 @@ -26,4 +26,3 @@ tasks: sshopts="ssh -o StrictHostKeyChecking=no" rsync --rsh="$sshopts" -rP *.tar.xz $deploy:/var/www/$target - -- cgit v1.2.3