Skip to content

markdown tweak

markdown tweak #54

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