markdown tweak #54
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: Make and Push Docker Images to Dockerhub | |
# on: [workflow_dispatch] | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
# --tag my-image-name:$(date +%s) | |
run: | | |
docker build . --file docker/Dockerfile.rtcloud --tag brainiak/rtcloud:latest | |
docker build . --file docker/Dockerfile.rtcloudlite --tag brainiak/rtcloudlite:latest | |
# Github runners are currently limited to 14 GB of storage so we can't build the XL | |
# instance here (which includes FSL, ANTS, C3D tools) which requires 30+ GB | |
# docker build . --file docker/Dockerfile.rtcloudXL --tag brainiak/rtcloudxl:latest | |
- name: Docker login | |
run: | | |
echo "${{secrets.DOCKER_PASSWORD}}" | docker login -u ${{secrets.DOCKER_USER}} --password-stdin | |
- name: Docker Push | |
run: | | |
docker push brainiak/rtcloud:latest | |
docker push brainiak/rtcloudlite:latest | |
# docker push brainiak/rtcloudxl:latest | |
- name: Docker logout | |
# Removes credentials stored in $HOME/.docker/config.json | |
run: docker logout |