From 9fcea5424c25562fc71fa2f0250dac254ba3a89f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 11 May 2022 12:15:24 -0700 Subject: add a script to deploy the site Instead of using the Makefile, move the content to a script. This will be executed by drone later. --- users/fcuny/notes/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'users/fcuny/notes/Makefile') diff --git a/users/fcuny/notes/Makefile b/users/fcuny/notes/Makefile index 4644ac3..fbd1205 100644 --- a/users/fcuny/notes/Makefile +++ b/users/fcuny/notes/Makefile @@ -5,7 +5,7 @@ DOCKER_IMAGE_REF := $(shell git rev-parse HEAD) DOCKERFILE := Dockerfile PROJECT_DIR := $(realpath $(CURDIR)) -.PHONY: server deploy docker-build docker-run worktree-clean +.PHONY: server docker-build docker-run worktree-clean server: @echo "Running hugo server ..." @@ -15,13 +15,6 @@ worktree-clean: git diff --exit-code git diff --staged --exit-code -deploy: worktree-clean docker-build - @echo "Deploying to fly ..." - flyctl deploy - @git tag -a --message $$(flyctl info -j |jq -r '.App | "notes.fcuny.net/v\(.Version)"') $$(flyctl info -j |jq -r '.App | "notes.fcuny.net/v\(.Version)"') - @git push origin --all - @git push origin --tags - docker-build: @echo "Building Docker image ..." $(DOCKER) build $(DOCKER_BUILD_ARGS) \ -- cgit v1.2.3