Update internals.md (#276) #333
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: Build and Deploy (Dispatch) | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@v2 | |
- name: Build npm | |
run: | | |
export NODE_OPTIONS=--openssl-legacy-provider | |
yarn | |
yarn run build | |
RepoAjobs: | |
runs-on: ubuntu-latest | |
needs: Build | |
steps: | |
- name: send dispatch | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.DEVOPS_TOKEN }} | |
repository: ${{ secrets.dispatch_repo }} | |
event-type: gitops-${{ github.event.repository.name }}-${{ github.ref }}-${{ github.actor }} | |
client-payload: >- | |
{ | |
"product": "platform", | |
"project": "external", | |
"type": "docker", | |
"repository": "${{ github.event.repository.name }}" , | |
"repository_full": "${{ github.event.repository.full_name }}" , | |
"github-sha": "${{ github.sha }}", | |
"github-actor": "${{ github.actor }}", | |
"github-ref": "${{ github.ref_name }}" | |
} |