Skip to content

Commit

Permalink
misc: refactor-plugin-images migrations (#6108)
Browse files Browse the repository at this point in the history
* added new plugin images

* added the left plugins

* adding migration for plugin-image update

* adding migration-02

---------

Co-authored-by: Badal Kumar Prusty <[email protected]>
  • Loading branch information
badal773 and Badal Kumar Prusty authored Nov 29, 2024
1 parent da17f34 commit bb7396f
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
41 changes: 41 additions & 0 deletions scripts/sql/30602300_plugin_icons_update.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-poll-container-registry.png' WHERE name='Pull images from container repository';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/ic-plugin-copy-container-image.png' WHERE name='Copy container image';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/hadolint.png' WHERE name='Docker Lint';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/k6-plugin-icon.png' WHERE name='K6 Load testing';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/sonarqube-plugin-icon.png' WHERE name='Sonarqube';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/dTrack-plugin-icon.png' WHERE name='Dependency track for Python';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/dTrack-plugin-icon.png' WHERE name='Dependency track for NodeJs';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/dTrack-plugin-icon.png' WHERE name='Dependency track for Maven & Gradle';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/semgrep.png' WHERE name='Semgrep';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/codacy-plugin-icon.png' WHERE name='Codacy';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-jira.png' WHERE name='Jira Issue Validator';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-jira.png' WHERE name='Jira Issue Updater';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-github-pr.png' WHERE name='Github Pull Request Updater';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/jenkins.png' WHERE name='Jenkins';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/ic-plugin-vulnerability-scan.png' WHERE name='Vulnerability Scanning';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/terraform-cli.svg' WHERE name='Terraform CLI v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/ansible-runner.svg' WHERE name='Ansible Runner v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/sonarqube-plugin-icon.png' WHERE name='Sonarqube v1.1.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/cloudanix-logo.png' WHERE name='Cloudanix Imagescan v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/ajaydevtron/devtron/main/assets/gke-plugin-icon.png' WHERE name='GKE Provisioner v1.1.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/gcs-bucket.svg' WHERE name='GCS Create Bucket';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/dockerslim-plugin-icon.png' WHERE name='DockerSlim v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/eks-plugin-icon.svg' WHERE name='EKS Create Cluster v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/copa-plugin-icon.png' WHERE name='Copacetic v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/docker-logo.png' WHERE name='Container Image Exporter v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/GithubReleasePluginlogo.png' WHERE name='Github Release Plugin v1.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/cosign-logo.png' WHERE name='Cosign v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/branch-compare-plugin-logo.png' WHERE name='GitHub Branch Divergence Checker v1.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/devtron-logo-plugin.png' WHERE name='Apply JOB in k8s v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/GithubPullRequest-Plugin-logo.png' WHERE name='Github Pull Request Closer v1.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/MailMaster.png' WHERE name='Mail Master v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/devtron-logo-plugin.png' WHERE name='Devtron CI Trigger v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/devtron-logo-plugin.png' WHERE name='Devtron CD Trigger v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/devtron-logo-plugin.png' WHERE name='Devtron Job Trigger v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/devtron-logo-plugin.png' WHERE name='Vulnerabilty_Scanner v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://t4.ftcdn.net/jpg/04/76/40/09/240_F_476400965_iYkCpMeqvQwaICySZBgyP5IErlyAgeZu.jpg' WHERE name='Custom Email Notifier v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://seeklogo.com/images/W/webhooks-logo-04229CC4AE-seeklogo.com.png' WHERE name='Custom Webhook Notifier v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/bitbucket-logo-plugin.jpeg' WHERE name='BitBucket Runner Trigger v1.0.0';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-golang-migrate.png' WHERE name='GoLang-migrate';
UPDATE plugin_parent_metadata SET icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-crane.png' WHERE name='CraneCopy';
update plugin_parent_metadata set icon='' where name='Devtron CI Trigger';
42 changes: 42 additions & 0 deletions scripts/sql/30602300_plugin_icons_update.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-gke-provisioner.png' where name='GKE Provisioner v1.1.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-email-notifier.png' where name='Custom Email Notifier v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-notify-webhook.png' where name='Custom Webhook Notifier v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-pull-image-from-registry.png' where name='Pull images from container repository';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-copy-container-image.png' where name='Copy container image';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-hadolint.png' where name='Docker Lint';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-k6-load-testing.png' where name='';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-sonarqube.png' where name='Sonarqube';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-dtrack.png' where name='Dependency track for Python';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-dtrack.png' where name='Dependency track for NodeJs';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-dtrack.png' where name='Dependency track for Maven & Gradle';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-semgrep.png' where name='Semgrep';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-codacy.png' where name='Codacy';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-jira-updater.png' where name='Jira Issue Validator';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-jira-updater.png' where name='Jira Issue Updater';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-github-pr-updater.png' where name='Github Pull Request Updater';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-trigger-jenkins.png' where name='Jenkins';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-security-scan.png' where name='Vulnerability Scanning';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-terraform-cli.png' where name='Terraform CLI v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-ansible.png' where name='Ansible Runner v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-sonarqube.png' where name='Sonarqube v1.1.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-cloudanix-imagescan.png' where name='Cloudanix Imagescan v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-gcs-bucket.png' where name='GCS Create Bucket';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-dockerslim.png' where name='DockerSlim v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-eks-cluster.png' where name='EKS Create Cluster v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-copacetic.png' where name='Copacetic v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-container-image-exporter.png' where name='Container Image Exporter v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-github-release.png' where name='Github Release Plugin v1.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-cosign.png' where name='Cosign v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-github-branch-divergence-checker.png' where name='GitHub Branch Divergence Checker v1.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-apply-k8s-job.png' where name='Apply JOB in k8s v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-github-pr-closer.png' where name='Github Pull Request Closer v1.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-mail-master.png' where name='Mail Master v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-devtron-ci-trigger.png' where name='Devtron CI Trigger v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-devtron-cd-trigger.png' where name='Devtron CD Trigger v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-devtron-job-trigger.png' where name='Devtron Job Trigger v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-security-scan.png' where name='Vulnerabilty_Scanner v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-bitbucket-runner-trigger.png' where name='BitBucket Runner Trigger v1.0.0';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-golang-migrate.png' where name='GoLang-migrate';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-crane.png' where name='CraneCopy';
update plugin_parent_metadata set icon='https://raw.githubusercontent.com/devtron-labs/devtron/main/assets/plugin-icons/ic-plugin-devtron-ci-trigger.png' where name='Devtron CI Trigger';

0 comments on commit bb7396f

Please sign in to comment.