Skip to content

Commit

Permalink
CI: Verify pathogen-repo-build's aws-batch-job-id output
Browse files Browse the repository at this point in the history
  • Loading branch information
joverlee521 committed Jun 21, 2024
1 parent d8640df commit e5d5d4f
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id-token: write
strategy:
matrix:
runtime: [docker, conda, aws-batch]
runtime: [docker, conda]
uses: ./.github/workflows/pathogen-repo-build.yaml
with:
repo: nextstrain/zika-tutorial
Expand All @@ -60,6 +60,37 @@ jobs:
BOGUS_ENVVAR: BOGUS_ENVVAR
secrets: inherit

# This job has to be separate from the matrix above because we want
# to check the aws-batch-job-id output from the workflow but matrix outputs
# currently will overwrite each other.
# See <https://github.com/orgs/community/discussions/26639>
test-pathogen-repo-build-aws-batch:
permissions:
id-token: write
uses: ./.github/workflows/pathogen-repo-build.yaml
with:
repo: nextstrain/zika-tutorial
runtime: aws-batch
run: nextstrain build --env BOGUS_ENVVAR .
artifact-name: build-output-aws-batch
env: |
BOGUS_ENVVAR: BOGUS_ENVVAR
secrets: inherit

test-pathogen-repo-build-aws-batch-id-output:
needs: [test-pathogen-repo-build-aws-batch]
permissions:
id-token: write
uses: ./.github/workflows/pathogen-repo-build.yaml
with:
repo: nextstrain/zika-tutorial
runtime: aws-batch
run: nextstrain build --attach "$AWS_BATCH_JOB_ID" .
artifact-name: build-output-aws-batch-reattached
env: |
AWS_BATCH_JOB_ID: ${{ needs.test-pathogen-repo-build-aws-batch.outputs.aws-batch-job-id }}
secrets: inherit

lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e5d5d4f

Please sign in to comment.