Skip to content

Commit

Permalink
chore: debugged CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Sep 24, 2021
1 parent 7901387 commit 91c69be
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
dockerfile: Dockerfile
build_extra_args: "--compress=true --label org.opencontainers.image.revision=${{github.sha}} --label org.opencontainers.image.created=${{steps.get-timestamp.outputs.timestamp}}"
registry: ghcr.io
stages_image_name: biosimulators/biosimulators-tutorials-stages
image_name: biosimulators/biosimulators-tutorials-stages
stages_image_name: biosimulators/biosimulators_tutorials-stages
image_name: biosimulators/biosimulators_tutorials-stages
image_tag: ${{github.sha}}
push_image_and_stages: true
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: "${{ secrets.DOCKER_REGISTRY_TOKEN }}"

- name: Label Docker image
run: |
docker image tag ghcr.io/biosimulators/biosimulators-tutorials-stages:${{github.sha}} ghcr.io/biosimulators/biosimulators-tutorials:${{github.sha}}
docker image tag ghcr.io/biosimulators/biosimulators-tutorials-stages:${{github.sha}} ghcr.io/biosimulators/biosimulators-tutorials:latest
docker image tag ghcr.io/biosimulators/biosimulators_tutorials-stages:${{github.sha}} ghcr.io/biosimulators/biosimulators_tutorials:${{github.sha}}
docker image tag ghcr.io/biosimulators/biosimulators_tutorials-stages:${{github.sha}} ghcr.io/biosimulators/biosimulators_tutorials:latest
# Test tutorials
- name: Test tutorials
Expand All @@ -44,11 +44,12 @@ jobs:
docker run \
--rm \
--entrypoint bash \
--mount type=bind,source=${cwd},target=/app/Biosimulators_tutorials \
ghcr.io/biosimulators/biosimulators-tutorials:latest \
--mount type=bind,source=${cwd},target=/home/Biosimulators_tutorials \
--workdir /home/Biosimulators_tutorials \
ghcr.io/biosimulators/biosimulators_tutorials:latest \
-c "
pipenv run pip install nbmake pytest pytest-forked
/bin/bash /xvfb-startup.sh pipenv run python -m pytest --forked --verbose --nbmake Biosimulators_tutorials/tutorials/
pip install nbmake pytest pytest-forked
/bin/bash /xvfb-startup.sh python -m pytest --forked --verbose --nbmake tutorials/
"
# Get version number
Expand Down Expand Up @@ -77,11 +78,11 @@ jobs:
env:
VERSION: ${{ steps.get-version-number.outputs.version }}
run: |
docker image tag ghcr.io/biosimulators/biosimulators-tutorials:${{github.sha}} ghcr.io/biosimulators/biosimulators-tutorials:${VERSION}
docker image tag ghcr.io/biosimulators/biosimulators_tutorials:${{github.sha}} ghcr.io/biosimulators/biosimulators_tutorials:${VERSION}
docker login ghcr.io \
--username ${{ secrets.DOCKER_REGISTRY_USERNAME }} \
--password ${{ secrets.DOCKER_REGISTRY_TOKEN }}
docker push ghcr.io/biosimulators/biosimulators-tutorials:${{github.sha}}
docker push ghcr.io/biosimulators/biosimulators-tutorials:latest
docker push ghcr.io/biosimulators/biosimulators-tutorials:${VERSION}
docker push ghcr.io/biosimulators/biosimulators_tutorials:${{github.sha}}
docker push ghcr.io/biosimulators/biosimulators_tutorials:latest
docker push ghcr.io/biosimulators/biosimulators_tutorials:${VERSION}

0 comments on commit 91c69be

Please sign in to comment.