{"id":19551115,"url":"https://github.com/ksingh7/github-action-deploy-to-openshift","last_synced_at":"2026-03-03T01:38:59.195Z","repository":{"id":89725251,"uuid":"424736897","full_name":"ksingh7/github-action-deploy-to-openshift","owner":"ksingh7","description":"Github Action App (python) to OpenShift","archived":false,"fork":false,"pushed_at":"2021-11-06T21:13:23.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T01:02:28.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksingh7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-04T20:52:07.000Z","updated_at":"2021-12-17T17:06:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"daccf741-269b-461b-971b-2ed22fb87e08","html_url":"https://github.com/ksingh7/github-action-deploy-to-openshift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ksingh7/github-action-deploy-to-openshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh7%2Fgithub-action-deploy-to-openshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh7%2Fgithub-action-deploy-to-openshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh7%2Fgithub-action-deploy-to-openshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh7%2Fgithub-action-deploy-to-openshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksingh7","download_url":"https://codeload.github.com/ksingh7/github-action-deploy-to-openshift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksingh7%2Fgithub-action-deploy-to-openshift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30029705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T04:10:28.864Z","updated_at":"2026-03-03T01:38:54.185Z","avatar_url":"https://github.com/ksingh7.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-action-deploy-to-openshift\nGithub Action App (python) to OpenShift\n\n```\nexport SA=github-actions-sa\noc create sa $SA\n\n# Now, we have to find the name of the secret in which the Service Account's apiserver token is stored.\n\nexport SECRETS=$(oc get sa $SA -o jsonpath='{.secrets[*].name}{\"\\n\"}') \u0026\u0026 echo $SECRETS\n# Select the one with \"token\" in the name - the other is for the container registry.\nexport SECRET_NAME=$(printf \"%s\\n\" $SECRETS | grep \"token\") \u0026\u0026 echo $SECRET_NAME\n\n# Get the token from the secret. \nexport ENCODED_TOKEN=$(oc get secret $SECRET_NAME -o jsonpath='{.data.token}{\"\\n\"}') \u0026\u0026 echo $ENCODED_TOKEN;\n\nexport OPENSHIFT_TOKEN=$(echo $ENCODED_TOKEN | base64 -d) \u0026\u0026 echo $OPENSHIFT_TOKEN\n\noc policy add-role-to-user edit -z $SA\n\nexport OPENSHIFT_SERVER_URL=$(oc whoami --show-server)\n\n\n\nbrew install gh\ngh auth login --hostname github.com\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift list\n\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift set OPENSHIFT_SERVER_URL -b\"${OPENSHIFT_SERVER_URL}\"\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift set OPENSHIFT_TOKEN -b\"${OPENSHIFT_TOKEN}\"\n\nexport QUAY_PULL_SECRET=''\nexport DOCKER_USERNAME=karansingh\nexport DOCKER_PASSWORD=\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift set QUAY_PULL_SECRET -b\"${QUAY_PULL_SECRET}\"\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift set DOCKER_USERNAME -b\"${DOCKER_USERNAME}\"\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift set DOCKER_PASSWORD -b\"${DOCKER_PASSWORD}\"\ngh secret -R github.com/ksingh7/github-action-deploy-to-openshift list\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksingh7%2Fgithub-action-deploy-to-openshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksingh7%2Fgithub-action-deploy-to-openshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksingh7%2Fgithub-action-deploy-to-openshift/lists"}