codebook-profile-build-caller #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: codebook-profile-build | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
jhub_ver: | ||
description: "JupyterHub version" | ||
required: true | ||
default: "4.0.2" | ||
py_ver: | ||
description: "Python version" | ||
required: true | ||
default: "3.10" | ||
worker_type: | ||
description: "Use worker image as codebook profile image" | ||
required: true | ||
type: choice | ||
default: "standard" | ||
options: | ||
- standard | ||
jobs: | ||
get_meta: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: get_version | ||
name: Get build metadata | ||
run: | | ||
## Get workflow version as codebook env image version | ||
echo "workflow_version=$(cat $(find . -name "version.py" | head -n 1) | grep -oP '\d+\.\d+\.[a-z0-9]+')" >> $GITHUB_OUTPUT | ||
outputs: | ||
workflow_version: ${{steps.get_version.outputs.workflow_version}} | ||
call_sciops_docker_image_debian: | ||
needs: [get_meta] | ||
uses: dj-sciops/.github/.github/workflows/codebook-profile-build.yaml@main | ||
Check failure on line 35 in .github/workflows/codebook-profile-build-caller.yaml GitHub Actions / .github/workflows/codebook-profile-build-caller.yamlInvalid workflow file
|
||
# uses: yambottle/dj-sciops.github/.github/workflows/codebook-profile-build.yaml@main | ||
with: | ||
jhub_ver: ${{ inputs.jhub_ver }} | ||
py_ver: ${{ inputs.py_ver }} | ||
worker_type: ${{ inputs.worker_type }} | ||
workflow_version: ${{needs.get_meta.outputs.workflow_version}} | ||
runner_timeout: 180 # default, optional | ||
secrets: | ||
RUNNER_PAT: ${{secrets.RUNNER_PAT}} | ||
RUNNER_REGION: ${{secrets.RUNNER_REGION}} | ||
RUNNER_TYPE: ${{secrets.RUNNER_TYPE}} | ||
RUNNER_AMI_ID: ${{secrets.RUNNER_AMI_ID}} | ||
RUNNER_SUBNET_ID: ${{secrets.RUNNER_SUBNET_ID}} | ||
RUNNER_SG_ID: ${{secrets.RUNNER_SG_ID}} | ||
RUNNER_AWS_ACCESS_KEY_ID: ${{secrets.RUNNER_AWS_ACCESS_KEY_ID}} | ||
RUNNER_AWS_SECRET_ACCESS_KEY: ${{secrets.RUNNER_AWS_SECRET_ACCESS_KEY}} | ||
DEPLOY_SSH_KEY_BASE64: ${{secrets.DEPLOY_SSH_KEY_BASE64}} | ||
DOCKER_REGISTRY_HOST: ${{secrets.DOCKER_REGISTRY_HOST}} | ||
DOCKER_REGISTRY_REPO: ${{secrets.DOCKER_REGISTRY_REPO}} | ||
DOCKER_REGISTRY_USERNAME: ${{secrets.DOCKER_REGISTRY_USERNAME}} | ||
DOCKER_REGISTRY_PASSWORD: ${{secrets.DOCKER_REGISTRY_PASSWORD}} |