From 627021d642cea3e9136fc41b44f3bb567d64d62b Mon Sep 17 00:00:00 2001 From: biwano Date: Fri, 3 Nov 2023 08:07:00 +0100 Subject: [PATCH 1/2] Adds a domain alias to app-spec --- .github/workflows/deploy.yaml | 1 + app-spec.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 30fa3d3f..34c9770d 100755 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -86,6 +86,7 @@ jobs: GITHUB_SHA: ${{ github.sha }} DIGITALOCEAN_APP_NAME: ${{ secrets.DIGITALOCEAN_APP_NAME }} DIGITALOCEAN_APP_DOMAIN: ${{ secrets.DIGITALOCEAN_APP_DOMAIN }} + DIGITALOCEAN_APP_DOMAIN_ALIAS: ${{ secrets.DIGITALOCEAN_APP_DOMAIN_ALIAS }} DIGITALOCEAN_SIZE_SLUG: ${{ secrets.DIGITALOCEAN_SIZE_SLUG }} PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }} PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }} diff --git a/app-spec.yml b/app-spec.yml index bd5274ca..7ddc1599 100644 --- a/app-spec.yml +++ b/app-spec.yml @@ -4,6 +4,8 @@ alerts: domains: - domain: ${DIGITALOCEAN_APP_DOMAIN} type: PRIMARY + - domain: ${DIGITALOCEAN_APP_DOMAIN_ALIAS} + type: ALIAS minimum_tls_version: "1.2" envs: - key: ENV From a17d5ac73439b035be8237dad3c49212059475e0 Mon Sep 17 00:00:00 2001 From: biwano Date: Fri, 3 Nov 2023 14:28:20 +0100 Subject: [PATCH 2/2] Use vars instead of secret for DIGITALOCEAN_APP_DOMAIN_ALIAS value --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 34c9770d..68ab6bf8 100755 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -86,7 +86,7 @@ jobs: GITHUB_SHA: ${{ github.sha }} DIGITALOCEAN_APP_NAME: ${{ secrets.DIGITALOCEAN_APP_NAME }} DIGITALOCEAN_APP_DOMAIN: ${{ secrets.DIGITALOCEAN_APP_DOMAIN }} - DIGITALOCEAN_APP_DOMAIN_ALIAS: ${{ secrets.DIGITALOCEAN_APP_DOMAIN_ALIAS }} + DIGITALOCEAN_APP_DOMAIN_ALIAS: ${{ vars.DIGITALOCEAN_APP_DOMAIN_ALIAS }} DIGITALOCEAN_SIZE_SLUG: ${{ secrets.DIGITALOCEAN_SIZE_SLUG }} PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }} PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}