EdgeWorker #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EdgeWorker | |
on: | |
workflow_dispatch: | |
inputs: | |
testCodeBranch: | |
description: 'Test Code Branch' | |
required: true | |
default: 'stage' | |
type: string | |
edgeworker: | |
description: 'Edge Worker' | |
type: choice | |
required: true | |
default: 'Acrobat_DC_web_stg' | |
options: | |
- 'Acrobat_DC_web_stg' | |
- 'Acrobat_DC_web_prod' | |
network: | |
description: 'Network' | |
type: choice | |
required: true | |
default: 'staging' | |
options: | |
- 'staging' | |
- 'production' | |
jobs: | |
deploy-edgeworker: | |
name: Deploy EdgeWorker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ inputs.testCodeBranch }} | |
- name: Build Edge Worker Scripts | |
run: | | |
npm run ewbuild | |
npm run ewprod2stg | |
- name: Deploy Edge Worker | |
uses: jdmevo123/[email protected] | |
env: | |
EDGERC: ${{ secrets.AKAMAI_EDGERC }} | |
WORKER_DIR: edgeworkers/${{ inputs.edgeworker }} | |
with: | |
edgeworkersName: ${{ inputs.edgeworker }} | |
network: ${{ inputs.network }} | |
groupid: '58544' |