Skip to content

Commit 03ed543

Browse files
authored
Make changes in the workflows so that they trigger the private repo's workflows on release (#371)
* Add changes in workflows to trigger private repo workflows * Add a fix for the workflow to send dispatch * Add a runs-on for the repo dispatch event * Fix the version determined from the tag
1 parent f4ee804 commit 03ed543

3 files changed

Lines changed: 19 additions & 58 deletions

File tree

.github/workflows/binary-publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
outputs:
1010
build_arc: ${{ steps.check-build-arc.outputs.run_jobs }}
1111
build_sls: ${{ steps.check-build-sls.outputs.run_jobs }}
12+
version: ${{ steps.get-version.version }}
1213

1314
steps:
1415
- name: Check if Arc binary should be built
@@ -19,6 +20,10 @@ jobs:
1920
id: check-build-sls
2021
run: (echo "${{ github.ref }}" | grep -Eq '^refs\/tags\/1\.[0-9]+\.[0-9]+$') && echo "run_jobs=true" >> $GITHUB_OUTPUT || echo "run_jobs==false" >> $GITHUB_OUTPUT
2122

23+
- name: Get the version from the tag
24+
id: get-version
25+
run: echo "version=v${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
26+
2227
build-arc:
2328
name: Build ARC binary
2429
needs: determine_whether_to_run
@@ -108,3 +113,16 @@ jobs:
108113
event_name: new_sls_release
109114
secrets:
110115
token: ${{ secrets.REPO_ACCESS_TOKEN }}
116+
117+
send-docker-event-arc:
118+
name: Send Docker Event
119+
needs: [build-arc, determine_whether_to_run]
120+
runs-on: ubuntu-latest
121+
steps:
122+
- name: Send repo dispatch
123+
uses: peter-evans/repository-dispatch@v2
124+
with:
125+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
126+
repository: appbaseio-confidential/rs-api-server
127+
event-type: publish_docker
128+
client-payload: '{"version": ${{ needs.determine_whether_to_run.outputs.version }} }'

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/update-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
uses: peter-evans/repository-dispatch@v2
2626
with:
2727
token: ${{ secrets.REPO_ACCESS_TOKEN }}
28-
repository: appbaseio-confidential/arc-noss
28+
repository: appbaseio-confidential/rs-api-server
2929
event-type: create_schema

0 commit comments

Comments
 (0)