Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/setupapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,17 @@ jobs:
local_docker:
if: github.repository == 'Project-MONAI/MONAI'
runs-on: [self-hosted, linux, x64, build_only]
# we only push built container if it is built from master branch
steps:
- uses: actions/checkout@v2
- name: docker_build
run: |
docker build -t localhost:5000/local_monai:latest -f Dockerfile .
docker push localhost:5000/local_monai:latest
docker tag localhost:5000/local_monai:latest projectmonai/monai:latest
docker login -u projectmonai -p ${{ secrets.DOCKER_PW }}
if [ $(git branch --show-current) == 'master' ]; then docker push projectmonai/monai:latest; fi
docker logout

docker:
if: github.repository == 'Project-MONAI/MONAI'
Expand Down