Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Mar 29, 2024
1 parent 95dd976 commit e4a45fe
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ jobs:
path: ${{ env.image }}
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

- name: Repository Dispatch
- name: Repository Dispatch json event new image is pushed
env:
image: ${{ matrix.path }}
imagetag: ${{ github.ref_name || 'main' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TOKEN_DISPATCH }}
repository: abcdesktopio/images
event-type: dispatch-from-oc.apps
event-type: dispatch-json-from-oc.apps
client-payload: '{ "ref_name": "${{ github.ref_name }}", "image": "${{ env.image }}", "tag": "${{ env.imagetag }}","run_id": "${{ github.run_id }}"}'

generateDocumentation:
Expand Down Expand Up @@ -178,14 +178,22 @@ jobs:
path: "*.md"
if-no-files-found: error # 'error' or 'ignore' are also available, defaults to `warn`

- name: Repository Dispatch
- name: Repository Dispatch to doc
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TOKEN_DISPATCH }}
repository: abcdesktopio/docs
event-type: dispatch-from-oc.apps
client-payload: '{ "ref_name": "${{ github.head_ref }}", "repository": "${{ github.repository }}", "run_id": "${{ github.run_id }}", "artifact": "artifact-application-md-files" }'

- name: Repository Dispatch dockerfiles to images
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TOKEN_DISPATCH }}
repository: abcdesktopio/image
event-type: dispatch-dockerfile-from-oc.apps
client-payload: '{ "ref_name": "${{ github.head_ref }}", "repository": "${{ github.repository }}", "run_id": "${{ github.run_id }}", "artifact": "artifact-dockerfiles" }'

#- name: commit Dockerfiles and md files
# env:
# CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
Expand Down

0 comments on commit e4a45fe

Please sign in to comment.