From 9f57445dd5efaf68b18a368e13e5dcbd87604c07 Mon Sep 17 00:00:00 2001 From: Fabrice Brito Date: Mon, 30 Oct 2023 14:40:09 +0100 Subject: [PATCH] CI --- .github/workflows/build.yaml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 952d14d..50faf8f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -144,29 +144,13 @@ jobs: steps: - uses: actions/checkout@v2 - run: | - step=crop - tag="ghcr.io/terradue/ogc-eo-application-package-hands-on/${step}:${{needs.version.outputs.app-version}}" - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-bodies-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body.cwl - - run: | - step=norm_diff - tag="ghcr.io/terradue/ogc-eo-application-package-hands-on/${step}:${{needs.version.outputs.app-version}}" - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-bodies-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body.cwl - - run: | - step=otsu - tag="ghcr.io/terradue/ogc-eo-application-package-hands-on/${step}:${{needs.version.outputs.app-version}}" - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-bodies-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body.cwl - - run: | - step=stac - tag="ghcr.io/terradue/ogc-eo-application-package-hands-on/${step}:${{needs.version.outputs.app-version}}" - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-bodies-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body-cloud-native.cwl - s="${step}" yq -i eval '(.$graph[] | select (.id == env(step)) ).hints.DockerRequirement.dockerPull = env(tag)' cwl-workflow/app-water-body.cwl + for step in crop norm_diff otsu stac + do + tag="ghcr.io/terradue/ogc-eo-application-package-hands-on/${step}:${{needs.version.outputs.app-version}}" + s="${step}" t= "${tag}" yq -i eval '(.$graph[] | select (.id == env(s)) ).hints.DockerRequirement.dockerPull = env(t)' cwl-workflow/app-water-bodies-cloud-native.cwl + s="${step}" t= "${tag}" yq -i eval '(.$graph[] | select (.id == env(s)) ).hints.DockerRequirement.dockerPull = env(t)' cwl-workflow/app-water-body-cloud-native.cwl + s="${step}" t= "${tag}" yq -i eval '(.$graph[] | select (.id == env(s)) ).hints.DockerRequirement.dockerPull = env(t)' cwl-workflow/app-water-body.cwl + done - run: mkdir downloads - run: | cp cwl-workflow/app-water-bodies-cloud-native.cwl downloads/app-water-bodies-cloud-native.${{needs.version.outputs.app-version}}.cwl