From 1e99932fe80980988d6b8d66060f38d39d9e081f Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 16:40:51 +0100 Subject: [PATCH 01/29] Adding Changes that Deploy the Site (tests to follow) --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64203f6..58fd248 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,6 +82,21 @@ jobs: run: | sam deploy --no-confirm-changeset --no-fail-on-empty-changeset + deploy-site: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup S3 + uses: jakejarvis/s3-sync-action@master + with: + args: --delete + env: + aws_s3_bucket: recreated-website2351 + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + source_dir: resume-site From 5afcc5216d8a7d4d810779b1d28a7c237f797941 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 16:43:47 +0100 Subject: [PATCH 02/29] Capitalisation changes --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58fd248..8ec97d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,10 +93,11 @@ jobs: with: args: --delete env: - aws_s3_bucket: recreated-website2351 - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source_dir: resume-site + AWS_S3_BUCKET: recreated-website2351 + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS-REGION: eu-west-1 + SOURCE_DIR: resume-site From c059e008bab46e8ee87cf29d98666ef2ec18b3bd Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 16:47:03 +0100 Subject: [PATCH 03/29] Removing Region --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ec97d4..070c201 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,6 @@ jobs: AWS_S3_BUCKET: recreated-website2351 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS-REGION: eu-west-1 SOURCE_DIR: resume-site From 20d4392a4ccdc53b7af37dd1687aecf5f5a55571 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 16:50:53 +0100 Subject: [PATCH 04/29] Further Debugging --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 070c201..ed6ab39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,16 +72,19 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: eu-west-1 - + + - name: Debug AWS credentials + run: | + env | grep AWS + - name: Run sam build run: | sam build - - name: Run sam deploy run: | sam deploy --no-confirm-changeset --no-fail-on-empty-changeset - + deploy-site: runs-on: ubuntu-latest steps: @@ -96,8 +99,4 @@ jobs: AWS_S3_BUCKET: recreated-website2351 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site - - - - + SOURCE_DIR: resume-site \ No newline at end of file From 6b5931b4da90dbf1ddf8125272c1e0aa8c6134af Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 16:56:32 +0100 Subject: [PATCH 05/29] Additional Debugging --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed6ab39..2c41b42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,11 +86,19 @@ jobs: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset deploy-site: + needs: build-and-deploy-infra runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v2 + - name: Debug environment variables + run: | + echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" + echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" + env | grep AWS + - name: Setup S3 uses: jakejarvis/s3-sync-action@master with: @@ -99,4 +107,4 @@ jobs: AWS_S3_BUCKET: recreated-website2351 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site \ No newline at end of file + SOURCE_DIR: resume-site From 59ff5a9baf9beec17be5d3de291688d922ab423b Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 17:00:47 +0100 Subject: [PATCH 06/29] Pipeline Tester --- .github/workflows/ci.yml | 6 ------ resume-site/index.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c41b42..68a760a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,12 +93,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Debug environment variables - run: | - echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" - echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" - env | grep AWS - - name: Setup S3 uses: jakejarvis/s3-sync-action@master with: diff --git a/resume-site/index.html b/resume-site/index.html index 2c8ba6a..e172d6e 100644 --- a/resume-site/index.html +++ b/resume-site/index.html @@ -3,7 +3,7 @@ - Anthony Coughlin - QA Manager + Anthony Coughlin - QA Manager - TEST From ce1ca8b785c755393fafb5940dc287aa7492f977 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 17:03:20 +0100 Subject: [PATCH 07/29] revertung chnge --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68a760a..2c41b42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,6 +93,12 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Debug environment variables + run: | + echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" + echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" + env | grep AWS + - name: Setup S3 uses: jakejarvis/s3-sync-action@master with: From 6d7fa44599ea69c2bd278fd941b9b70640cd5cdb Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 17:07:40 +0100 Subject: [PATCH 08/29] Additional Debug --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c41b42..6db76a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,7 @@ jobs: - name: Debug AWS credentials run: | - env | grep AWS + env | grep AWS || true - name: Run sam build run: | @@ -97,7 +97,7 @@ jobs: run: | echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" - env | grep AWS + env | grep AWS || true - name: Setup S3 uses: jakejarvis/s3-sync-action@master From ead43d4424319aeee54b80f9e5c6c3ca392535a6 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 17:17:09 +0100 Subject: [PATCH 09/29] Last test today --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6db76a0..e12f3df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,9 +102,8 @@ jobs: - name: Setup S3 uses: jakejarvis/s3-sync-action@master with: - args: --delete - env: - AWS_S3_BUCKET: recreated-website2351 - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site + args: --delete + AWS_S3_BUCKET: recreated-website2351 + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + SOURCE_DIR: resume-site From b04ffbb3160bde7edcdaf92c0a819df0c9148a6f Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 17:21:44 +0100 Subject: [PATCH 10/29] ADDING bUCKET IN SECRETS --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e12f3df..4ffa53d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: uses: jakejarvis/s3-sync-action@master with: args: --delete - AWS_S3_BUCKET: recreated-website2351 + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SOURCE_DIR: resume-site From 3aff9f3645391ee90411867f57339510b0e6f952 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:21:27 +0100 Subject: [PATCH 11/29] Debugging Secrets --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ffa53d..5a8befe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,8 +95,7 @@ jobs: - name: Debug environment variables run: | - echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" - echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" + echo "AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}" env | grep AWS || true - name: Setup S3 From 63a0640fc0bb879b6aa9e598f14336d3773a5295 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:30:30 +0100 Subject: [PATCH 12/29] Trying direct S3 bucket name --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a8befe..02fda9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,9 @@ jobs: uses: jakejarvis/s3-sync-action@master with: args: --delete - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + env: + AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: eu-west-1 SOURCE_DIR: resume-site From 7acf93b5af15472a5bb31c2b47158f9d1c7197a8 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:33:07 +0100 Subject: [PATCH 13/29] 1 --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02fda9d..cc4691e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,5 +106,4 @@ jobs: AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: eu-west-1 SOURCE_DIR: resume-site From 6d94dc3cfd894a59af9be29f0d65a71e5e0f222f Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:36:09 +0100 Subject: [PATCH 14/29] 2 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc4691e..987303d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,8 @@ jobs: with: args: --delete env: - AWS_S3_BUCKET: 's3://recreated-website2351' - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws_s3_bucket: 's3://recreated-website2351' + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: eu-west-1 SOURCE_DIR: resume-site From 1a3443026db121f8def61ce71a98e31c163702db Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:39:26 +0100 Subject: [PATCH 15/29] 3 --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 987303d..cc4691e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,8 +103,7 @@ jobs: with: args: --delete env: - aws_s3_bucket: 's3://recreated-website2351' - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: eu-west-1 + AWS_S3_BUCKET: 's3://recreated-website2351' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SOURCE_DIR: resume-site From 9396caf853130bba3c54efd55f6322b71344474a Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:43:50 +0100 Subject: [PATCH 16/29] 3 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc4691e..c08157b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,4 +106,4 @@ jobs: AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site + SOURCE_DIR: resume-site \ No newline at end of file From c29061bdef27f966e1066ee105bdb13ecadd2c83 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:44:46 +0100 Subject: [PATCH 17/29] 5 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c08157b..00e818b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,8 @@ jobs: - name: Debug environment variables run: | echo "AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}" + echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" + echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" env | grep AWS || true - name: Setup S3 From 95bf824e527b42a1fb8fe513e4d2e7171852044a Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:47:19 +0100 Subject: [PATCH 18/29] 6 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00e818b..34cbbf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,5 +107,5 @@ jobs: env: AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SOURCE_DIR: resume-site \ No newline at end of file From 633b102a832c934ade7570f44937bf834bf30f60 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:50:35 +0100 Subject: [PATCH 19/29] 7 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34cbbf1..00e818b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,5 +107,5 @@ jobs: env: AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} SOURCE_DIR: resume-site \ No newline at end of file From 48139ac9c18e31f529c9a86273c1d4da8b0b2bbe Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:53:27 +0100 Subject: [PATCH 20/29] 6 --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00e818b..6317e8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,5 +107,4 @@ jobs: env: AWS_S3_BUCKET: 's3://recreated-website2351' AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site \ No newline at end of file + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file From c37582188757dba444a0bc53b687686dfa1a2caf Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:57:20 +0100 Subject: [PATCH 21/29] 8 --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6317e8d..ece6bd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,9 +102,10 @@ jobs: - name: Setup S3 uses: jakejarvis/s3-sync-action@master - with: - args: --delete - env: - AWS_S3_BUCKET: 's3://recreated-website2351' - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file + with: + args: --delete + env: + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + SOURCE_DIR: resume-site From 59938a4d171c247a46e4c3c2958adcc0e7909c8c Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 21:59:55 +0100 Subject: [PATCH 22/29] 9 --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ece6bd1..aa495da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,10 +102,10 @@ jobs: - name: Setup S3 uses: jakejarvis/s3-sync-action@master - with: - args: --delete - env: - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site + with: + args: --delete + env: + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + SOURCE_DIR: resume-site \ No newline at end of file From 0ddbd1609fee504fb650abaa8b05d4490f0e4836 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 22:04:50 +0100 Subject: [PATCH 23/29] 98 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa495da..974395d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,4 +108,5 @@ jobs: AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: resume-site \ No newline at end of file + region: 'eu-west-1' + SOURCE_DIR: 'resume-site' \ No newline at end of file From f9cc4fc71ed2e328edeb1b8cd342be84f922f768 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Thu, 11 Jul 2024 22:07:42 +0100 Subject: [PATCH 24/29] 11 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 974395d..f4c9ed0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,8 +105,8 @@ jobs: with: args: --delete env: - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_S3_BUCKET: ${{secrets.AWS_S3_BUCKET}} + AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} + AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} region: 'eu-west-1' SOURCE_DIR: 'resume-site' \ No newline at end of file From 072b86ed918276552a25365b35c0b08a8f3578d7 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Fri, 12 Jul 2024 06:37:38 +0100 Subject: [PATCH 25/29] Trying to pass commands directly --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4c9ed0..ee78719 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,13 +100,14 @@ jobs: echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" env | grep AWS || true + - name: Print env for debugging + run: printenv + - name: Setup S3 uses: jakejarvis/s3-sync-action@master with: - args: --delete - env: - AWS_S3_BUCKET: ${{secrets.AWS_S3_BUCKET}} - AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} - AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} - region: 'eu-west-1' - SOURCE_DIR: 'resume-site' \ No newline at end of file + args: --delete + aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET }} + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + source_dir: resume-site \ No newline at end of file From a50467067fc92d0eab268f56200b824031d5db18 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Fri, 12 Jul 2024 06:46:07 +0100 Subject: [PATCH 26/29] trying github action --- .github/workflows/ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee78719..5d36bd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,21 +93,13 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Debug environment variables - run: | - echo "AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}" - echo "AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}" - echo "AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}" - env | grep AWS || true - - - name: Print env for debugging - run: printenv - - - name: Setup S3 - uses: jakejarvis/s3-sync-action@master + - name: Sync to S3 + uses: github-action/s3-sync-action@v1.0.0 with: - args: --delete - aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET }} - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - source_dir: resume-site \ No newline at end of file + source_dir: 'resume-site' + destination_bucket: ${{ secrets.AWS_S3_BUCKET }} + delete: true + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + From 4406052bb8411ef4a20effe36d1f77c990bfcd65 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Fri, 12 Jul 2024 06:51:51 +0100 Subject: [PATCH 27/29] trying another lib --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d36bd8..a34aa41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,13 +93,13 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Sync to S3 - uses: github-action/s3-sync-action@v1.0.0 + - name: AWS S3 Sync Github Action + uses: sai-sharan/aws-s3-sync-action@v0.1.0 with: - source_dir: 'resume-site' - destination_bucket: ${{ secrets.AWS_S3_BUCKET }} + access_key: ${{ secrets.AWS_ACCESS_KEY }} + secret_access_key: ${{ secrets.SECRET_ACCESS_KEY }} + region: 'eu-west-1' + source: 'build' + destination_bucket: 'recreated-website2351' delete: true - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 17ea4587dc4e595f9c051d7b14035fe698a98037 Mon Sep 17 00:00:00 2001 From: antowaddle Date: Fri, 12 Jul 2024 06:55:44 +0100 Subject: [PATCH 28/29] 1 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a34aa41..1029514 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: access_key: ${{ secrets.AWS_ACCESS_KEY }} secret_access_key: ${{ secrets.SECRET_ACCESS_KEY }} region: 'eu-west-1' - source: 'build' + source: 'resume-site' destination_bucket: 'recreated-website2351' delete: true From 06baab22038b218b823c5f10509bbafde8a80c3e Mon Sep 17 00:00:00 2001 From: antowaddle Date: Fri, 12 Jul 2024 06:58:51 +0100 Subject: [PATCH 29/29] trying again --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1029514..877cbc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: AWS S3 Sync Github Action + - name: AWS S3 Sync Github Action2 uses: sai-sharan/aws-s3-sync-action@v0.1.0 with: access_key: ${{ secrets.AWS_ACCESS_KEY }}