Skip to content

Commit

Permalink
Update buildReleaseIncDocker workflow to automatically kick off a bui…
Browse files Browse the repository at this point in the history
…ldAndDeployMedleyDocker workflow in the online repo (#1752)

* to buildReleaseInclDocker workflow, add call to build and deploy the Online-Medley Docker image to oio

* add version tag to call to buildAndDeploy... workflow in online

* Oh boy, get the name of the build and deploy workflow in online right this time!

* Added explicit secrets to call to medley online build deploy workflow

* fix test code in buildReleaseInclDocker

* debuggin gbuildReleaseInclDocker

* Debugging adding of online deploy to buildReleaseInclDocker

* Change approach to running buildDeployMedleyDocker online workflow to use gh workflow run rather than use a cross-repo workflow call

* GH_TOKEN or GITHUB_TOKEN?

* Create ONLINE_TOKEN to access online repo from medley repo workflows via gh

* From buildReleaseInclDocker workflow, remove debugging stuff; change kickoff of oio build and deploy so that it will not kickoff workflow if draft is true
  • Loading branch information
fghalasz authored Jun 10, 2024
1 parent 2f64993 commit 9793e48
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/buildReleaseInclDocker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Interlisp webflow to build a Medley release and push it to github.
# And to build a multiplatform Docker image for the release and push it to Docker Hub.
# And to kickoff a build and deploy workflow for Medley-online within the online repo.
#
# This workflow just calls two reuseable workflows to the two task:
# buildLoadup.yml and buildDocker.yml
Expand All @@ -14,12 +15,12 @@
# ******************************************************************************


name: "Build/Push Release & Docker"
name: "Build/Push Release, Docker, OIO"

# Run this workflow on ...
on:
schedule:
- cron: '0 9 * * 3'
- cron: '17 9 * * 3'

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -111,3 +112,16 @@ jobs:

######################################################################################

# Kickoff workflow in online repo to build and deploy Medley docker image to oio
do_oio:
runs-on: ubuntu-latest
needs: [inputs, do_docker]
steps:
- name: trigger-oio-buildAndDeploy
run: |
if [ ! "${{ needs.inputs.outputs.draft }}" = "true" ]
then
gh workflow run buildAndDeployMedleyDocker.yml --repo Interlisp/online --ref master
fi
env:
GITHUB_TOKEN: ${{ secrets.ONLINE_TOKEN }}

0 comments on commit 9793e48

Please sign in to comment.