Skip to content

Commit

Permalink
From buildReleaseInclDocker workflow, remove debugging stuff; change …
Browse files Browse the repository at this point in the history
…kickoff of oio build and deploy so that it will not kickoff workflow if draft is true
  • Loading branch information
fghalasz committed Jun 6, 2024
1 parent f4c998d commit c7cd651
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 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 @@ -90,7 +91,6 @@ jobs:

# Build Loadup
do_release:
if: false
needs: inputs
uses: ./.github/workflows/buildLoadup.yml
with:
Expand All @@ -103,7 +103,6 @@ jobs:

# Build Docker Image
do_docker:
if: false
needs: [inputs, do_release]
uses: ./.github/workflows/buildDocker.yml
with:
Expand All @@ -113,14 +112,16 @@ jobs:

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

# Build Online Docker and Deploy it to Online
# , do_release, do_docker]
do_online:
# Kickoff workflow in online repo to build and deploy Medley docker image to oio
do_oio:
runs-on: ubuntu-latest
needs: [inputs]
needs: [inputs, do_docker]
steps:
- name: run-online-deploy
- name: trigger-oio-buildAndDeploy
run: |
gh workflow run buildAndDeployMedleyDocker.yml --repo Interlisp/online
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 c7cd651

Please sign in to comment.