From 10a5e91202dcfe7588f060f14f99f27ef6e290a7 Mon Sep 17 00:00:00 2001 From: Connor McArthur Date: Mon, 13 Nov 2023 14:12:13 -0500 Subject: [PATCH 1/3] add deploy workflow --- .github/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..cff729e8e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,12 @@ +name: Deploy hub.getdbt.com +on: + push: + branches: + - 'master' +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy + run: | + ./deploy.sh From ebe51f8ed41d7fd4755cb28d61c7f912b8d527b4 Mon Sep 17 00:00:00 2001 From: Connor McArthur Date: Mon, 13 Nov 2023 14:14:35 -0500 Subject: [PATCH 2/3] read the docs --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9950d2715..92f1d54ef 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ deploy.sh @cmcarthur -.github/* @cmcarthur +.github @cmcarthur From 8af23074ed850d55f824a5ff0f4991fc7ae64b14 Mon Sep 17 00:00:00 2001 From: Connor McArthur Date: Mon, 13 Nov 2023 14:18:23 -0500 Subject: [PATCH 3/3] load environment variables in from secrets --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cff729e8e..beab1f3a2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,5 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy + env: + AWS_REGION: us-east-1 + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | ./deploy.sh