From 959e3bf6c8a6bf4e1461c62d578a5ea9691cf141 Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 10:37:15 -0400 Subject: [PATCH 01/10] Update config.yml Change hugo docker image to: klakegg/hugo:0.88.0 --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 840df61..1969535 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: environment: HUGO_BUILD_DIR: ~/project/public docker: - - image: felicianotech/docker-hugo:0.40 + - image: klakegg/hugo:0.88.0 working_directory: ~/project steps: - checkout @@ -19,4 +19,4 @@ jobs: command: pip install awscli - run: name: "Deploy to S3 if tests pass and branch is Master" - command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org \ No newline at end of file + command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org From 7c1251469cde9f0ed5254212e46c20322a1603eb Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 10:49:02 -0400 Subject: [PATCH 02/10] Update config.yml Trying to install hugo manually. --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1969535..d7399c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,10 +4,13 @@ jobs: environment: HUGO_BUILD_DIR: ~/project/public docker: - - image: klakegg/hugo:0.88.0 + - image: ubuntu:latest working_directory: ~/project steps: - checkout + - install: + name: "Install Hugo" + command: apt-get install hugo - run: name: "Run Hugo" command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR From 793bd10109ba747783f2ac737284a67108d8203d Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 10:49:38 -0400 Subject: [PATCH 03/10] Update config.yml Use run command. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d7399c6..2a4d5bb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: working_directory: ~/project steps: - checkout - - install: + - run: name: "Install Hugo" command: apt-get install hugo - run: From 29acf0bc8daf1d1b88c3216947123300c8a1823b Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 10:51:07 -0400 Subject: [PATCH 04/10] Update config.yml Try snap. --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a4d5bb..5352368 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ jobs: - checkout - run: name: "Install Hugo" - command: apt-get install hugo + command: snap install hugo --channel=extended - run: name: "Run Hugo" command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR From 397bd53760b584eac359759474a57b61e81c5cd4 Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 10:55:14 -0400 Subject: [PATCH 05/10] Update config.yml Try other docker. --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5352368..8248ef7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,13 +4,10 @@ jobs: environment: HUGO_BUILD_DIR: ~/project/public docker: - - image: ubuntu:latest + - image: cibuilds/hugo:0.88.1 working_directory: ~/project steps: - checkout - - run: - name: "Install Hugo" - command: snap install hugo --channel=extended - run: name: "Run Hugo" command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR From 17cb553ab9c955d80ade4cff7b085e3f21c0845d Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 11:01:22 -0400 Subject: [PATCH 06/10] Update config.yml new commands --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8248ef7..5063134 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,10 +13,10 @@ jobs: command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR - run: name: "Install PIP" - command: apk add --update python python-dev py-pip + command: apt-get update; apt-get install -y python python-pip python-dev - run: name: "Install AWS" - command: pip install awscli + command: pip install awscli; aws --version - run: name: "Deploy to S3 if tests pass and branch is Master" command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org From ea053f2eb092ccb573209d593d0e558fab78cf20 Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 11:02:11 -0400 Subject: [PATCH 07/10] Update config.yml add sudo --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5063134..ddeea19 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,10 +13,10 @@ jobs: command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR - run: name: "Install PIP" - command: apt-get update; apt-get install -y python python-pip python-dev + command: sudo apt-get update; sudo apt-get install -y python python-pip python-dev - run: name: "Install AWS" - command: pip install awscli; aws --version + command: sudo pip install awscli; aws --version - run: name: "Deploy to S3 if tests pass and branch is Master" command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org From 7dd9a53f2f6956b2c9291da1eaa9cb67a2310e8b Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 11:03:33 -0400 Subject: [PATCH 08/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ddeea19..935bb4c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ jobs: command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR - run: name: "Install PIP" - command: sudo apt-get update; sudo apt-get install -y python python-pip python-dev + command: sudo apt-get update; sudo apt-get install -y python py-pip python-dev - run: name: "Install AWS" command: sudo pip install awscli; aws --version From 93fe315ef29090272b7bc59baca94df95415d375 Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 11:08:24 -0400 Subject: [PATCH 09/10] Update config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 935bb4c..3794b3e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,11 +12,11 @@ jobs: name: "Run Hugo" command: HUGO_ENV=production hugo --theme=phillycocoaheadtheme -v -d $HUGO_BUILD_DIR - run: - name: "Install PIP" - command: sudo apt-get update; sudo apt-get install -y python py-pip python-dev + name: "Update apt-get" + command: sudo apt-get update - run: name: "Install AWS" - command: sudo pip install awscli; aws --version + command: sudo apt-get awscli; aws --version - run: name: "Deploy to S3 if tests pass and branch is Master" command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org From 180d93d98382b012de260466bd80c72d78ed434e Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Sat, 30 Oct 2021 11:09:25 -0400 Subject: [PATCH 10/10] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3794b3e..46b8b30 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,7 @@ jobs: command: sudo apt-get update - run: name: "Install AWS" - command: sudo apt-get awscli; aws --version + command: sudo apt-get install awscli; aws --version - run: name: "Deploy to S3 if tests pass and branch is Master" command: aws s3 sync $HUGO_BUILD_DIR s3://phillycocoa.org