Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Oct 30, 2023
1 parent ba92c33 commit 9f57445
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f57445

Please sign in to comment.