Skip to content

Commit

Permalink
Fix merge delete docker and manual delete docker #TASK-7417
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Feb 19, 2025
1 parent ad2b9d4 commit 7ba4131
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/manual-delete-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: Manual Delete Docker Image

on:
workflow_dispatch:

inputs:
task:
description: "Tag of the Docker image to delete (must start with 'TASK')"
required: true
type: string

jobs:
call-delete-docker:
name: Call Reusable Delete Docker Workflow
uses: opencb/cellbase/.github/workflows/reusable-delete-docker.yml@develop
with:
task: ${{ inputs.task }}
secrets: inherit
secrets: inherit
24 changes: 6 additions & 18 deletions .github/workflows/pull-request-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,9 @@ on:
- closed

jobs:
delete-docker:
name: Execute delete docker image
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '10'
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Delete in Docker Hub
run: |
echo "Deleting docker image ${{ github.head_ref }}"
python3 ./cellbase-app/app/cloud/docker/docker-build.py delete --images base --tag ${{ github.head_ref }}
call-delete-docker:
name: Call Reusable Delete Docker Workflow
uses: opencb/cellbase/.github/workflows/reusable-delete-docker.yml@develop
with:
task: ${{ github.head_ref }}
secrets: inherit

0 comments on commit 7ba4131

Please sign in to comment.