Skip to content

Commit

Permalink
modify-workflow-pnd-to-interop (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurodandrea authored Jul 23, 2024
1 parent 9be6e66 commit 94b2e8b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/actions/deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ inputs:
firma_strapi_api_base_url:
description: 'The API URL to communicate with Strapi'
required: false
pdnd_strapi_api_token:
interop_strapi_api_token:
description: 'The Token to communicate with Strapi'
required: false
pdnd_strapi_api_base_url:
interop_strapi_api_base_url:
description: 'The API URL to communicate with Strapi'
required: false
cdn_path:
Expand Down Expand Up @@ -80,8 +80,8 @@ runs:
DEMO_STRAPI_API_BASE_URL: ${{ inputs.demo_strapi_api_base_url }}
FIRMA_STRAPI_API_TOKEN: ${{ inputs.firma_strapi_api_token }}
FIRMA_STRAPI_API_BASE_URL: ${{ inputs.firma_strapi_api_base_url }}
PDND_STRAPI_API_TOKEN: ${{ inputs.pdnd_strapi_api_token }}
PDND_STRAPI_API_BASE_URL: ${{ inputs.pdnd_strapi_api_base_url }}
INTEROP_STRAPI_API_TOKEN: ${{ inputs.interop_strapi_api_token }}
INTEROP_STRAPI_API_BASE_URL: ${{ inputs.interop_strapi_api_base_url }}
CDN_PATH: ${{ inputs.cdn_path }}
shell: bash
run: npm run build -w nextjs-website
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_nextjs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
DEMO_STRAPI_API_BASE_URL=${{ vars.DEMO_STRAPI_URL }}
FIRMA_STRAPI_API_TOKEN=${{ secrets.FIRMA_STRAPI_TOKEN }}
FIRMA_STRAPI_API_BASE_URL=${{ vars.FIRMA_STRAPI_URL }}
PDND_STRAPI_API_TOKEN=${{ secrets.PDND_STRAPI_TOKEN }}
PDND_STRAPI_API_BASE_URL=${{ vars.PDND_STRAPI_URL }}
INTEROP_STRAPI_API_TOKEN=${{ secrets.INTEROP_STRAPI_TOKEN }}
INTEROP_STRAPI_API_BASE_URL=${{ vars.INTEROP_STRAPI_URL }}
- name: Generate definition file
run: aws ecs describe-task-definition --task-definition nextjs-task-def --query taskDefinition > task-definition.json
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy_website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- appio
- demo
- firma
- pdnd
- interop

# Allows external webhook trigger
repository_dispatch:
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: 'ubuntu-latest'
strategy:
matrix:
environment: [ 'send','appio','demo','firma','pdnd' ] # add new tenant after creating the relevant environment vars/secrets github
environment: [ 'send','appio','demo','firma','interop' ] # add new tenant after creating the relevant environment vars/secrets github

environment: ${{ matrix.environment }}

Expand All @@ -60,8 +60,8 @@ jobs:
demo_strapi_api_base_url: ${{ vars.DEMO_STRAPI_URL }}
firma_strapi_api_token: ${{ secrets.FIRMA_STRAPI_TOKEN }}
firma_strapi_api_base_url: ${{ vars.FIRMA_STRAPI_URL }}
pdnd_strapi_api_token: ${{ secrets.PDND_STRAPI_TOKEN }}
pdnd_strapi_api_base_url: ${{ vars.PDND_STRAPI_URL }}
interop_strapi_api_token: ${{ secrets.INTEROP_STRAPI_TOKEN }}
interop_strapi_api_base_url: ${{ vars.INTEROP_STRAPI_URL }}
cdn_path: ${{ vars.CDN_PATH }}

manual_deploy:
Expand Down Expand Up @@ -93,6 +93,6 @@ jobs:
demo_strapi_api_base_url: ${{ vars.DEMO_STRAPI_URL }}
firma_strapi_api_token: ${{ secrets.FIRMA_STRAPI_TOKEN }}
firma_strapi_api_base_url: ${{ vars.FIRMA_STRAPI_URL }}
pdnd_strapi_api_token: ${{ secrets.PDND_STRAPI_TOKEN }}
pdnd_strapi_api_base_url: ${{ vars.PDND_STRAPI_URL }}
interop_strapi_api_token: ${{ secrets.INTEROP_STRAPI_TOKEN }}
interop_strapi_api_base_url: ${{ vars.INTEROP_STRAPI_URL }}
cdn_path: ${{ vars.CDN_PATH }}
8 changes: 4 additions & 4 deletions apps/nextjs-website/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ ARG FIRMA_STRAPI_API_TOKEN
ENV FIRMA_STRAPI_API_TOKEN=${FIRMA_STRAPI_API_TOKEN}
ARG FIRMA_STRAPI_API_BASE_URL
ENV FIRMA_STRAPI_API_BASE_URL=${FIRMA_STRAPI_API_BASE_URL}
ARG PDND_STRAPI_API_TOKEN
ENV PDND_STRAPI_API_TOKEN=${PDND_STRAPI_API_TOKEN}
ARG PDND_STRAPI_API_BASE_URL
ENV PDND_STRAPI_API_BASE_URL=${PDND_STRAPI_API_BASE_URL}
ARG INTEROP_STRAPI_API_TOKEN
ENV INTEROP_STRAPI_API_TOKEN=${INTEROP_STRAPI_API_TOKEN}
ARG INTEROP_STRAPI_API_BASE_URL
ENV INTEROP_STRAPI_API_BASE_URL=${INTEROP_STRAPI_API_BASE_URL}
WORKDIR /app
COPY package*.json ./
RUN npm install
Expand Down

0 comments on commit 94b2e8b

Please sign in to comment.