Skip to content

Commit

Permalink
Merge pull request #2351 from opencb/TASK-5092
Browse files Browse the repository at this point in the history
TASK-5092 - The CICD to delete docker on merge fails
  • Loading branch information
juanfeSanahuja authored Oct 5, 2023
2 parents aa049e3 + 0bc895f commit daabee4
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/pull-request-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ on:
- closed

jobs:
build:
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@release-4.8.x
with:
maven_opts: -Dopencga.war.name=opencga -Dcheckstyle.skip

delete-docker:
uses: opencb/java-common-libs/.github/workflows/delete-docker-hub-workflow.yml@release-4.8.x
needs: build
with:
cli: python3 ./build/cloud/docker/docker-build.py delete --images base --tag ${{ github.head_ref }}
secrets: inherit
docker-delete:
name: Delete TASK Docker image
runs-on: ubuntu-22.04
steps:
- name: "Checkout opencga"
uses: actions/checkout@v3
- run: python3 ./opencga-app/app/cloud/docker/docker-build.py delete --images base --tag ${{ github.ref_name }} --username ${{ secrets.DOCKER_HUB_USER }} --password ${{ secrets.DOCKER_HUB_PASSWORD }}

0 comments on commit daabee4

Please sign in to comment.