Use FINAL PACKAGE to use released gems #221
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: openstudio-docker | |
on: [push, pull_request] | |
# example of how to restrict to one branch and push event | |
#on: | |
# push: | |
# branches: | |
# - test_branch | |
env: | |
USE_TESTING_TIMEOUTS: "true" | |
OPENSTUDIO_VERSION: 3.8.0 | |
OPENSTUDIO_SHA: 2Bc6dd2826ef | |
OPENSTUDIO_VERSION_EXT: "-beta" | |
jobs: | |
docker: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8.x' | |
- name: test and build | |
shell: bash | |
run: | | |
docker build -t openstudio:latest \ | |
--build-arg OPENSTUDIO_VERSION=$OPENSTUDIO_VERSION \ | |
--build-arg OPENSTUDIO_SHA=$OPENSTUDIO_SHA \ | |
--build-arg OPENSTUDIO_VERSION_EXT=$OPENSTUDIO_VERSION_EXT \ | |
--build-arg DOWNLOAD_PREFIX=$DOWNLOAD_PREFIX . | |
docker run openstudio:latest openstudio openstudio_version | |
docker run openstudio:latest /usr/local/openstudio-$OPENSTUDIO_VERSION/Radiance/bin/rtrace -version | |
docker run -v $(pwd):/var/simdata/openstudio openstudio:latest ruby /var/simdata/openstudio/test/test_run.rb | |
docker run -v $(pwd)/test:/var/simdata/openstudio openstudio:latest ./test_gemfile.sh | |
- name: deploy docker | |
if: ${{ success() }} && | |
github.ref == 'refs/heads/master' || | |
github.ref == 'refs/heads/develop' || | |
github.ref == 'refs/heads/custom_branch_name' | |
shell: bash | |
run: ./deploy_docker.sh | |
env: | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
- name: deploy singularity | |
if: ${{ success() }} && | |
github.ref == 'refs/heads/master' || | |
github.ref == 'refs/heads/develop' || | |
github.ref == 'refs/heads/custom_brach_name' | |
shell: bash | |
run: ./singularity/deploy_singularity.sh | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |