-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into TASK-7102
- Loading branch information
Showing
285 changed files
with
9,646 additions
and
2,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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: ./.github/workflows/delete-docker.yml | ||
with: | ||
task: ${{ inputs.task }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Reusable delete docker workflow from DockerHub | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
task: | ||
type: string | ||
required: true | ||
secrets: | ||
DOCKER_HUB_USER: | ||
required: true | ||
DOCKER_HUB_PASSWORD: | ||
required: true | ||
|
||
jobs: | ||
delete-docker: | ||
name: Execute delete docker image | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '10' | ||
- name: Validate task name | ||
if: ${{ !startsWith(inputs.task, 'TASK') }} | ||
run: | | ||
echo "Error: Can't delete ${{ inputs.task }}. Only Docker images related to TASK branches can be deleted" | ||
exit 1 | ||
- name: Delete in Docker Hub | ||
if: ${{ startsWith(inputs.task, 'TASK') }} | ||
run: | | ||
echo "Deleting docker image ${{ inputs.task }}" | ||
python3 ./opencga-app/app/cloud/docker/docker-build.py delete --images base --tag ${{ inputs.task }} --username ${{ secrets.DOCKER_HUB_USER }} --password ${{ secrets.DOCKER_HUB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.