From 0f0355d89ca0b9da7ffd2c4b82505eff8da39951 Mon Sep 17 00:00:00 2001 From: qtrinh2 Date: Mon, 5 Feb 2024 14:03:07 -0500 Subject: [PATCH 1/3] Create cicd.yml added hugo build, release, deploy workflow --- .github/workflows/cicd.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..1f2e0b6 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,26 @@ +name: "[datascribe-site] Build, Release, Deploy" + +on: + push: + branches: + - "main" + - "cicd-workflow" + paths: + - "**" + +jobs: + hugo-build-release-deploy: + uses: chnm/.github/.github/workflows/hugo--build-release-deploy.yml@main + secrets: inherit + with: + container-registry: "ghcr.io" + container-image-name: "datascribe-site" + hugo-context-root: "." + hugo-devl-url: "https://datascribe.tech" + hugo-prod-url: "https://datascribe.tech" + + build-artifact-name: "datascribe-website" + release-tag-name-type: "iso" + + website-devl-fqdn: "datascribe.tech" + website-prod-fqdn: "datascribe.tech" From 9aca27337f4bc030f01ec52f6e02b17116d5cb4a Mon Sep 17 00:00:00 2001 From: qtrinh2 Date: Mon, 5 Feb 2024 14:16:47 -0500 Subject: [PATCH 2/3] removing rsync deployment --- Makefile | 7 ------- rsync-excludes | 3 --- 2 files changed, 10 deletions(-) delete mode 100644 rsync-excludes diff --git a/Makefile b/Makefile index 2278945..c71c5fb 100644 --- a/Makefile +++ b/Makefile @@ -7,11 +7,4 @@ build : hugo --cleanDestinationDir --buildDrafts --buildFuture --baseURL https://datascribe.tech/ @echo "Website finished building." -deploy : build - @echo "\nDeploying the site with rsync ..." - rsync --delete --itemize-changes --omit-dir-times \ - --checksum -avz --no-t --no-perms --exclude-from=rsync-excludes \ - public/ susanoo:/websites/datascribe.tech/public | egrep -v '^\.' - @echo "Finished deploying the site with rsync." - .PHONY : preview build deploy diff --git a/rsync-excludes b/rsync-excludes deleted file mode 100644 index 189b81a..0000000 --- a/rsync-excludes +++ /dev/null @@ -1,3 +0,0 @@ -.htaccess -.htpasswd -.DS_Store \ No newline at end of file From 54939c1bfe6096a14d6b4514085ccbbad2b5d0fb Mon Sep 17 00:00:00 2001 From: qtrinh2 Date: Mon, 5 Feb 2024 14:18:36 -0500 Subject: [PATCH 3/3] Update cicd.yml --- .github/workflows/cicd.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 1f2e0b6..e3fd9fd 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -4,7 +4,6 @@ on: push: branches: - "main" - - "cicd-workflow" paths: - "**"