Skip to content

Commit

Permalink
cicd: Release script to test hadoop flavours #TASK-6185
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed May 21, 2024
1 parent 19e70ad commit b000d9c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@ jobs:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
needs: build-hdp
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ needs.build-hdp.outputs.version }}
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag "${{ needs.build-hdp.outputs.version }}-hdp3.1"
build_folder: build-folder
secrets: inherit

# Add the deploy-maven and deploy-python jobs they depend on the build-hdp job
deploy-maven:
uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop
needs: build-hdp
with:
maven_opts: -P hdp3.1 -Dopencga.war.name=opencga
secrets: inherit

deploy-python:
uses: opencb/java-common-libs/.github/workflows/deploy-python-workflow.yml@develop
needs: build-hdp
with:
cli: ./clients/python/python-build.sh push
artifact: build-folder
secrets: inherit
# deploy-maven:
# uses: opencb/java-common-libs/.github/workflows/deploy-maven-repository-workflow.yml@develop
# needs: build-hdp
# with:
# maven_opts: -P hdp3.1 -Dopencga.war.name=opencga
# secrets: inherit
#
# deploy-python:
# uses: opencb/java-common-libs/.github/workflows/deploy-python-workflow.yml@develop
# needs: build-hdp
# with:
# cli: ./clients/python/python-build.sh push
# artifact: build-folder
# secrets: inherit

# Add the release job that depends on all the previous jobs
release:
uses: opencb/java-common-libs/.github/workflows/release-github-workflow.yml@develop
needs: [ build-hdp, deploy-docker-hdp, deploy-maven, deploy-python]
needs: [ build-hdp, deploy-docker-hdp]
with:
artifact: build-folder
file: |
Expand All @@ -61,7 +61,7 @@ jobs:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
needs: build-hdi
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ needs.build-hdi.outputs.version }}
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag "${{ needs.build-hdi.outputs.version }}-hdi5.1"
build_folder: build-folder-hdi
secrets: inherit

Expand All @@ -76,7 +76,7 @@ jobs:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
needs: build-emr
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ needs.build-emr.outputs.version }}
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag "${{ needs.build-emr.outputs.version }}-emr6.1"
build_folder: build-folder-emr
secrets: inherit

Expand All @@ -91,6 +91,6 @@ jobs:
uses: opencb/java-common-libs/.github/workflows/deploy-docker-hub-workflow.yml@develop
needs: build-emr613
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ needs.build-emr613.outputs.version }}
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag "${{ needs.build-emr613.outputs.version }}-emr6.13"
build_folder: build-folder-emr613
secrets: inherit

0 comments on commit b000d9c

Please sign in to comment.