Skip to content

Commit

Permalink
Merge branch 'develop' into TASK-7192
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Jan 14, 2025
2 parents d087744 + 76dc510 commit 9b0464a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/manual-deploy-python-notebook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Reusable deploy Docker python-notebook
run-name: 'Run deploy Docker python-notebook ${{ inputs.branch }} by @${{ github.actor }}'
on:
workflow_dispatch:
inputs:
branch:
description: "The branch, tag or SHA of the source code to build docker."
type: string
required: true
tag:
description: "The tag for the new docker."
type: string
required: true
hadoop:
type: string
description: 'Hadoop flavour. Any of: [hdp3.1, hdi5.1, emr6.1, emr6.13]'
required: false
default: "hdp3.1"
pyopencga_version:
type: string
description: 'PyOpenCGA version.'
required: true

jobs:
build:
name: Build Java app
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.get_project_version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '10'
ref: "${{ inputs.branch }}"
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Install dependencies branches
run: |
if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then
chmod +x ./.github/workflows/scripts/get_same_branch.sh
./.github/workflows/scripts/get_same_branch.sh ${{ github.ref_name }} ${{ inputs.hadoop }}
fi
- name: Maven Build (skip tests)
run: mvn -T 2 clean install -DskipTests
- uses: actions/upload-artifact@v4
with:
name: build-folder
path: build

deploy-docker-python-notebook:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
needs: build
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images python-notebook --tag ${{ inputs.tag }} --docker-build-args "-e VERSION=${{ inputs.pyopencga_version }}"
secrets: inherit
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<guava.version>28.0-jre</guava.version>
<htsjdk.version>2.23.0</htsjdk.version>
<snpeff.version>4.3.1</snpeff.version>
<mongodb-driver.version>4.8.2</mongodb-driver.version>
<mongodb-driver.version>4.11.4</mongodb-driver.version>
<commons-io.version>2.8.0</commons-io.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-codec.version>1.7</commons-codec.version>
Expand Down

0 comments on commit 9b0464a

Please sign in to comment.