Skip to content

Commit bd03f03

Browse files
committed
Deploy in staging
1 parent e689252 commit bd03f03

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/chartpress.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- 'main'
66
- 'staging'
7+
- 'cloudflare_tunnel'
78
jobs:
89
build:
910
runs-on: ubuntu-22.04
@@ -45,7 +46,7 @@ jobs:
4546
DEVELOPMENT_DB_EBS: ${{ secrets.STAGING_DB_EBS }}
4647
DEVELOPMENT_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}
4748
DEVELOPMENT_DB_USER: ${{ secrets.STAGING_DB_USER }}
48-
DEVELOPMENT_DOMAIN_NAME: staging.openhistoricalmap.org
49+
DEVELOPMENT_DOMAIN_NAME: ohmstaging.org
4950
DEVELOPMENT_ID_KEY: ${{ secrets.STAGING_ID_KEY }}
5051
DEVELOPMENT_ID_APPLICATION: ${{ secrets.STAGING_ID_APPLICATION }}
5152
DEVELOPMENT_OAUTH_CLIENT_ID: ${{ secrets.STAGING_OAUTH_CLIENT_ID }}
@@ -70,7 +71,7 @@ jobs:
7071
OHM_SLACK_WEBHOOK_URL: ${{ secrets.OHM_SLACK_WEBHOOK_URL }}
7172
################ Staging secrets ################
7273
- name: Staging - substitute secrets
73-
if: github.ref == 'refs/heads/staging'
74+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/cloudflare_tunnel'
7475
uses: bluwy/substitute-string-action@v1
7576
with:
7677
_input-file: 'values.staging.template.yaml'
@@ -87,7 +88,7 @@ jobs:
8788
STAGING_DB_EBS: ${{ secrets.STAGING_DB_EBS }}
8889
STAGING_DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }}
8990
STAGING_DB_USER: ${{ secrets.STAGING_DB_USER }}
90-
STAGING_DOMAIN_NAME: staging.openhistoricalmap.org
91+
STAGING_DOMAIN_NAME: ohmstaging.org
9192
STAGING_ID_KEY: ${{ secrets.STAGING_ID_KEY }}
9293
STAGING_ID_APPLICATION: ${{ secrets.STAGING_ID_APPLICATION }}
9394
STAGING_OAUTH_CLIENT_ID: ${{ secrets.STAGING_OAUTH_CLIENT_ID }}
@@ -188,14 +189,14 @@ jobs:
188189
PRODUCTION_OPENSTREETMAP_AUTH_SECRET: ${{ secrets.PRODUCTION_OPENSTREETMAP_AUTH_SECRET }}
189190

190191
- name: AWS Credentials
191-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
192+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cloudflare_tunnel'
192193
uses: aws-actions/configure-aws-credentials@v1
193194
with:
194195
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
195196
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
196197
aws-region: us-east-1
197198
- name: Setup Kubectl and Helm Dependencies
198-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
199+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cloudflare_tunnel'
199200
run: |
200201
sudo pip install awscli --ignore-installed six
201202
sudo curl -L -o /usr/bin/kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.7/2020-07-08/bin/linux/amd64/kubectl
@@ -208,24 +209,23 @@ jobs:
208209
sudo chmod +x /usr/local/bin/helm
209210
helm version
210211
211-
- name: Update kube-config staging
212-
if: github.ref == 'refs/heads/staging'
212+
- name: Update kube-config staging
213+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/cloudflare_tunnel'
213214
run: aws eks --region us-east-1 update-kubeconfig --name osmseed-staging
214215
- name: Update kube-config prod
215216
if: github.ref == 'refs/heads/main'
216217
run: aws eks --region us-east-1 update-kubeconfig --name osmseed-production-v2
217218
- name: Add Helm repository
218-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
219+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cloudflare_tunnel'
219220
run: |
220221
helm repo add osm-seed https://osm-seed.github.io/osm-seed-chart/
221222
helm repo update
222223
- name: Install helm dependencies for
223-
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main'
224+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/cloudflare_tunnel'
224225
run: cd ohm && helm dep up
225226
# Staging
226227
- name: Staging - helm deploy
227-
# if: github.ref == 'refs/heads/staging'
228-
if: github.ref == 'refs/heads/staging'
228+
if: github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/cloudflare_tunnel'
229229
run: helm upgrade --install staging --wait ohm/ -f values.staging.yaml -f ohm/values.yaml
230230
# Production
231231
- name: Production - helm deploy

0 commit comments

Comments
 (0)