From 0b7e1ae5aea05cdc5069b3edb15bd2165a2e1411 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 7 Oct 2022 11:56:36 -0700 Subject: ref(build): build and deploy with nix Refactored the build of the docker image to be done with nix: the flake knows how to build the docker image, using caddy as a HTTP server. It generates a small image, with the configuration for caddy and the site generated by hugo (`nix build`). Deleted the Dockerfile since the creation is done with nix. Got rid of the deployment script since this is also done via the flake (`nix run .#deploy`). --- scripts/deploy.sh | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 scripts/deploy.sh (limited to 'scripts/deploy.sh') diff --git a/scripts/deploy.sh b/scripts/deploy.sh deleted file mode 100755 index 69ad82a..0000000 --- a/scripts/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -git diff --exit-code -git diff --staged --exit-code - -flyctl deploy - -VERSION=$(flyctl info -j |jq -r '.App | "fcuny.net/v\(.Version)"') - -git tag -a --message ${VERSION} ${VERSION} -git push origin --all -git push origin --tags - -flyctl agent stop -- cgit 1.4.1