Skip to content

Commit 4db68f4

Browse files
authored
Merge pull request #75 from RS-PYTHON/feat/rspy594-build-latest-client
trigger rs-infra-core workflow when merge to develop
2 parents a46c156 + ff5d5e6 commit 4db68f4

File tree

2 files changed

+22
-68
lines changed

2 files changed

+22
-68
lines changed

.github/dockerfiles/Dockerfile.store

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

.github/workflows/publish-binaries.yml

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -133,34 +133,6 @@ jobs:
133133
# Publish Docker images #
134134
#########################
135135

136-
publish-docker-store:
137-
if: ${{ (github.actor != 'dependabot[bot]') && (needs.set-env.outputs.docker_tag == 'latest') }}
138-
runs-on: ubuntu-latest
139-
name: "Docker image for wheel storage"
140-
needs: [set-env, build-whl]
141-
permissions: write-all
142-
outputs:
143-
docker_image: ${{ steps.publish-docker.outputs.docker_image}}
144-
steps:
145-
- uses: actions/checkout@v4
146-
147-
# Download .whl files into ./whl/
148-
- name: Download .whl dependencies
149-
uses: actions/download-artifact@v4
150-
with:
151-
name: ${{ needs.build-whl.outputs.package_name }}
152-
path: ./whl
153-
154-
- id: publish-docker
155-
uses: ./.github/actions/publish-docker
156-
with:
157-
dockerfile: ./.github/dockerfiles/Dockerfile.store
158-
build_context_path: ./whl
159-
image_suffix: _store
160-
version_name: ${{ needs.build-whl.outputs.version_name }}
161-
github_token: ${{ secrets.GITHUB_TOKEN }}
162-
docker_tag: ${{ needs.set-env.outputs.docker_tag }}
163-
164136
# Local jupyter image with rs-client-libraries
165137
publish-docker-jupyter:
166138
if: github.actor != 'dependabot[bot]'
@@ -299,3 +271,25 @@ jobs:
299271
./run-notebooks.sh "$docker_tag"
300272
301273
shell: bash
274+
275+
###########################
276+
# Trigger other workflows #
277+
###########################
278+
279+
# See https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
280+
trigger-rs-infra-core:
281+
needs: [set-env, build-whl]
282+
if: (github.actor != 'dependabot[bot]') && (needs.set-env.outputs.branch_name == 'develop')
283+
runs-on: ubuntu-latest
284+
name: "Trigger rs-infra-core workflow"
285+
steps:
286+
- run: |
287+
set -x
288+
curl -L \
289+
-X POST \
290+
-H "Accept: application/vnd.github+json" \
291+
-H "Authorization: Bearer ${{ secrets.TRIGGER_WORKFLOWS }}" \
292+
-H "X-GitHub-Api-Version: 2022-11-28" \
293+
https://api.github.com/repos/RS-PYTHON/rs-infra-core/actions/workflows/publish-image.yml/dispatches \
294+
-d '{"ref":"develop","inputs":{"docker_tag":"latest"}}'
295+
shell: bash

0 commit comments

Comments
 (0)