Skip to content

Commit

Permalink
fix: cors for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed May 17, 2023
1 parent 54b394f commit 50039b0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash

- name: Run kustomize
run: (cd deployment/base && ../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.image-tag-name.outputs.image-tag-name }} )
run: (cd deployment/overlays/development && ../../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.image-tag-name.outputs.image-tag-name }} )

- name: Install doctl for kubernetes
uses: digitalocean/action-doctl@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/treetracker-wallet-api-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install kustomize
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Run kustomize
run: (cd deployment/base && ../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.package-version.outputs.current-version }} )
run: (cd deployment/overlays/production && ../../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.package-version.outputs.current-version }} )
- name: Install doctl for kubernetes
uses: digitalocean/action-doctl@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/treetracker-wallet-api-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install kustomize
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Run kustomize
run: (cd deployment/base && ../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.package-version.outputs.current-version }} )
run: (cd deployment/overlays/test && ../../../kustomize edit set image greenstand/treetracker-wallet-api:${{ steps.package-version.outputs.current-version }} )
- name: Install doctl for kubernetes
uses: digitalocean/action-doctl@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion deployment/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
bases:
patchesStrategicMerge:
- mapping.yaml
resources:
- ../../base
11 changes: 11 additions & 0 deletions deployment/overlays/development/mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: treetracker-wallet-api-v2
spec:
cors:
origins: '*'
methods: GET, POST, PATCH, OPTIONS
headers:
- Content-Type
- Authorization

0 comments on commit 50039b0

Please sign in to comment.