ci: Add docker builds to github actions #4
Workflow file for this run
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: Build Docker Image | |
on: | |
push: | |
jobs: | |
build_server: | |
name: Server | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
docker build -t openneuro/node:latest . | |
docker build -t openneuro/server:latest packages/openneuro-server | |
# - name: push the docker image | |
# id: push-docker-image | |
# run: docker push openneuro/server:latest | |
build_app: | |
name: App | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
docker build -t openneuro/node:latest . | |
docker build -t openneuro/app:latest packages/openneuro-app | |
# - name: push the docker image | |
# id: push-docker-image | |
# run: docker push openneuro/app:latest | |
build_indexer: | |
name: Indexer | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
docker build -t openneuro/node:latest . | |
docker build -t openneuro/indexer:latest packages/openneuro-indexer | |
# - name: push the docker image | |
# id: push-docker-image | |
# run: docker push openneuro/indexer:latest | |
build_datalad_service: | |
name: Datalad Service | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKERHUB_USERNAME}} | |
password: ${{secrets.DOCKERHUB_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
cd services/datalad | |
docker build --build-arg LERNA_JSON="$(cat ../../lerna.json)" -t openneuro/datalad-service:latest . | |
# - name: push the docker image | |
# id: push-docker-image | |
# run: docker push openneuro/indexer:latest |