Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update buildReleaseIncDocker workflow to automatically kick off a buildAndDeployMedleyDocker workflow in the online repo #1752

Merged
merged 11 commits into from
Jun 10, 2024
Merged
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 }}