Skip to content

Commit

Permalink
adds CI for docker and uses python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Nov 21, 2023
1 parent 6421db3 commit 5359ac5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build
on:
push:
branches:
- master
- issue-160

paths:
# Only rebuild website when apps have changed
- calrissian/**'
- .github/**
- Dockerfile

jobs:

version:

runs-on: ubuntu-latest

outputs:

app-version: ${{ steps.set-version.outputs.version }}

steps:
- uses: actions/checkout@v2
- run: echo "APP_VERSION=$(python setup.py --version" >> $GITHUB_ENV
- run: echo app version is $APP_VERSION
- id: set-version
run: echo "::set-output name=version::$APP_VERSION"

container-build:

needs: version

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: echo version ${{needs.version.outputs.app-version}}
- run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: build & push image
run: |
IMAGE_ID=ghcr.io/Duke-GCB/calrissian/calrissian
docker build . --file Dockerfile --tag calrissian
docker tag calrissian $IMAGE_ID:${{needs.version.outputs.app-version}}
docker push $IMAGE_ID:${{needs.version.outputs.app-version}}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7
FROM python:3.10
LABEL maintainer="dan.leehr@duke.edu"

# cwltool requires nodejs
Expand Down

0 comments on commit 5359ac5

Please sign in to comment.