Skip to content

Merge pull request #5 from ohsu-comp-bio/cm4ai #7

Merge pull request #5 from ohsu-comp-bio/cm4ai

Merge pull request #5 from ohsu-comp-bio/cm4ai #7

Workflow file for this run

# Workflow for building the Bridge2AI Jupyter image and pushing it to the quay.io repository
# Optionally debug via SSH
# Ref: https://fleetdm.com/engineering/tips-for-github-actions-usability
#
# To use this step uncomment and place anywhere in the build steps. The build will pause on this step and
# output a ssh address associated with the Github action worker. Helpful for debugging build steps and
# and intermediary files/artifacts.
# Example:
#
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
name: Build and publish Bridge2AI Jupyter image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build
run: |
docker login quay.io
docker build -t quay.io/ohsu-comp-bio/bridge2ai-jupyter .
- name: Push
run: |
docker push quay.io/ohsu-comp-bio/bridge2ai-jupyter