Skip to content

Commit

Permalink
Update azure-static-web-apps-orange-tree-098987f0f.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t1agob committed May 14, 2024
1 parent 4a4593d commit 6e47633
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions .github/workflows/azure-static-web-apps-orange-tree-098987f0f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,23 @@ permissions:
actions: read

jobs:
build_and_deploy_frontend:
build_and_deploy_components:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Frontend
name: Build and Deploy Components
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_TREE_098987F0F }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"

app_location: "/frontend/" # App source code path
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional

- uses: actions/checkout@v4

- uses: azure/setup-kubectl@v4

- uses: Azure/k8s-set-context@v4
with:
kubeconfig: ${{ secrets.KUBE_CONFIG }}

- run: |
kubectl apply -f deploy/redis.yaml
kubectl apply -f deploy/pubsub.yaml
build_and_deploy_order_management_service:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,3 +80,25 @@ jobs:

- run: |
kubectl apply -f deploy/deployment.yaml
build_and_deploy_frontend:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Frontend
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_TREE_098987F0F }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"

app_location: "/frontend/"
api_location: ""
output_location: "build"

0 comments on commit 6e47633

Please sign in to comment.