Skip to content
# Workflow for building OGC application packages
#
# Steps:
#
# 1. Parse the input algorithm config to retrieve the build parameters.
# 2. Build OGC application package executable (docker image).
# 3. Generate the application package process cwl.
# 4. Push the OGC application package executable to the image registry.
on:
push:
branches:
- main
- feature/app-pack-gen
jobs:
build_ogc_app_pack:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Generate build config for algorithm
run: ls
#python3 ${{ github.workspace }}/generate_build_config.py ${{ github.workspace }}/algorithm_configs/algorithm_config.yaml
- name: Source build config environment variables
run: echo ${{ github.workspace }} && source ${{ github.workspace }}/config.txt
- name: Build OGC application package executable
run: echo ${{ env.REPO_NAME }}
#run: docker build -t ${{REPO_NAME}}:${{BRANCH}} -f docker/Dockerfile .
- name: Build OGC application package process cwl
run: python3 ${{ github.workspace }}/generate_app_pack.py ${{ github.workspace }}/algorithm_configs/algorithm_config.yaml $(basename ${ogc_container_url})
- name: Push OGC application package executable to image registry
run: echo Push to image registry not yet implemented.