1
0
mirror of synced 2026-01-25 20:06:44 +00:00

Update buildReleaseIncDocker workflow to automatically kick off a buildAndDeployMedleyDocker 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
This commit is contained in:
Frank Halasz
2024-06-10 14:52:39 -07:00
committed by GitHub
parent 2f6499317b
commit 9793e48c4e

View File

@@ -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
@@ -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:
@@ -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 }}