Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK-7417 - New github workflow to manually delete dockers from DockerHub #720

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading