Skip to content

Scheduled Deployments ⏲ #116

Scheduled Deployments ⏲

Scheduled Deployments ⏲ #116

Workflow file for this run

name: Scheduled Deployments ⏲
on:
schedule:
- cron: '44 19 5,20 * *'
workflow_dispatch:
jobs:
create-release:
name: Create release 🌟
runs-on: ubuntu-latest
steps:
- name: Generate release body 📜
id: release-body
run: |
printf "Release $(date +"%Y.%m.%d")\n\n"\
"You may view the artifacts in this release for more information "\
"about the images that were published." > RELEASE_BODY.txt
echo "release-tag=$(date +"%Y.%m.%d")" >> $GITHUB_OUTPUT
- name: Create release 🌟
uses: softprops/action-gh-release@v1
with:
body_path: RELEASE_BODY.txt
token: ${{ secrets.REPO_GITHUB_TOKEN }}
generate_release_notes: true
tag_name: ${{ steps.release-body.outputs.release-tag }}
outputs:
release_tag: ${{ steps.release-body.outputs.release-tag }}
build:
name: Build & Deploy 🚀
needs: create-release
runs-on: ubuntu-latest
strategy:
matrix:
image:
- distro_tag: '4.4.0'
bioc: '3.19'
distro: rstudio-local
origin: rocker
- distro_tag: '4.4.0'
bioc: '3.19'
distro: rstudio
origin: rocker
- distro_tag: 'latest'
bioc: 'devel'
distro: debian-clang-devel
origin: rhub
- distro_tag: 'latest'
bioc: 'devel'
distro: debian-gcc-devel
origin: rhub
- distro_tag: 'latest'
bioc: 'devel'
distro: fedora-clang-devel
origin: rhub
- distro_tag: 'latest'
bioc: 'devel'
distro: fedora-gcc-devel
origin: rhub
- distro_tag: 'latest'
bioc: '3.19'
distro: debian-gcc-patched
origin: rhub
- distro_tag: 'latest'
bioc: '3.19'
distro: debian-gcc-release
origin: rhub
# Trigger steps
steps:
- name: Checkout repository 💳
uses: actions/checkout@v4
with:
ref: main
- name: Trigger all builds ▶️
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.REPO_GITHUB_TOKEN }}
event-type: scheduled
client-payload: >
{
"origin": "${{ matrix.image.origin }}",
"distribution": "${{ matrix.image.distro }}",
"r_version": "${{ matrix.image.distro_tag }}",
"bioc_version": "${{ matrix.image.bioc }}",
"latest_r_version": "4.4.0",
"latest_bioc_version": "3.19",
"tag": "",
"tag_latest": "true",
"release_tag": "${{ needs.create-release.outputs.release_tag }}"
}