Skip to content

Commit

Permalink
override viash version
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Jun 17, 2024
1 parent 7b37a2c commit c489611
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ jobs:
if: ${{ hashFiles('~/.local/bin/viash') == '' }}
with:
version: ${{ matrix.viash_version }}

- if: ${{ startsWith(matrix.name, 'build_0_9') }}
- name: Specify Viash version
run: |
cp _viash_0.9.yaml _viash.yaml
if [[ ${{ matrix.name }} ~= "build_0_9" ]]; then
cp _viash_0.9.yaml _viash.yaml
fi
echo "viash_version: ${{ matrix.viash_version }}" >> _viash.yaml
- name: Remove target folder from .gitignore
run: |
Expand All @@ -42,7 +45,7 @@ jobs:
- uses: viash-io/viash-actions/ns-build@v5
with:
config_mod: .functionality.version := '${{ matrix.name }}'
config_mod: ${{ matrix.config_mod }}
parallel: true

- name: Deploy to target branch
Expand All @@ -56,7 +59,7 @@ jobs:
uses: viash-io/viash-actions/ns-build@v5
with:
parallel: true
config_mod: .functionality.version := '${{ matrix.name }}'
config_mod: ${{ matrix.config_mod }}
platform: docker
setup: build

Expand All @@ -70,6 +73,6 @@ jobs:
- name: Push container
uses: viash-io/viash-actions/ns-build@v5
with:
config_mod: .functionality.version := '${{ matrix.name }}'
config_mod: ${{ matrix.config_mod }}
platform: docker
setup: push
2 changes: 1 addition & 1 deletion _viash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ config_mods: |
.platforms[.type == 'docker'].target_organization := 'viash-io/test-nextflow-wave-fusion'
.platforms[.type == 'docker'].target_image_source := 'https://github.com/viash-io/test-nextflow-wave-fusion'
.platforms[.type == 'nextflow'].directives.tag := '$id'
.platforms[.type == 'nextflow'].auto.simplifyOutput := false
.platforms[.type == 'nextflow'].auto.simplifyOutput := false

0 comments on commit c489611

Please sign in to comment.