{"id":13474664,"url":"https://github.com/steebchen/kubectl","last_synced_at":"2025-10-18T14:40:15.631Z","repository":{"id":45234548,"uuid":"189233997","full_name":"steebchen/kubectl","owner":"steebchen","description":"A Github action for kubectl, the Kubernetes CLI","archived":false,"fork":false,"pushed_at":"2022-12-08T09:31:09.000Z","size":12,"stargazers_count":215,"open_issues_count":3,"forks_count":75,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-30T02:36:32.597Z","etag":null,"topics":["actions","cd","ci","devops","github","kubectl","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steebchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-29T13:44:57.000Z","updated_at":"2024-10-21T08:07:02.000Z","dependencies_parsed_at":"2023-01-05T05:03:09.713Z","dependency_job_id":null,"html_url":"https://github.com/steebchen/kubectl","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.1875,"last_synced_commit":"7c4c70d551952e40881998b840e16d4d9824a54f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fkubectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fkubectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fkubectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fkubectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steebchen","download_url":"https://codeload.github.com/steebchen/kubectl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247154469,"owners_count":20892861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["actions","cd","ci","devops","github","kubectl","kubernetes"],"created_at":"2024-07-31T16:01:13.905Z","updated_at":"2025-10-18T14:40:15.544Z","avatar_url":"https://github.com/steebchen.png","language":"Shell","readme":"# GitHub Action for Kubernetes CLI\n\nThis action provides `kubectl` for GitHub Actions.\n\n## Upgrading from v1 to v2\n\nIf you upgrade from v1 to v2, note that you need to specify new variables via `with`, namely `version`, `config`, and `command`. See below for an example.\n\n## Usage\n\n`.github/workflows/push.yml`\n\n```yaml\non: push\nname: deploy\njobs:\n  deploy:\n    name: deploy to cluster\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - name: deploy to cluster\n      uses: steebchen/kubectl@v2.0.0\n      with: # defaults to latest kubectl binary version\n        config: ${{ secrets.KUBE_CONFIG_DATA }}\n        command: set image --record deployment/my-app container=${{ github.repository }}:${{ github.sha }}\n    - name: verify deployment\n      uses: steebchen/kubectl@v2.0.0\n      with:\n        config: ${{ secrets.KUBE_CONFIG_DATA }}\n        version: v1.21.0 # specify kubectl binary version explicitly\n        binaries-url: \"https://dl.k8s.io/release/v1.21.0/bin/linux/amd64/kubectl\" # specify the download url explicitly\n        command: rollout status deployment/my-app\n```\n\n## Arguments\n\n`command` – **required**: The command you want to run, without `kubectl`, e.g. `get pods`\n\n`config` – **required**: A base64-encoded kubeconfig file with credentials for Kubernetes to access the cluster. You can get it by running the following command:\n\n```bash\ncat $HOME/.kube/config | base64\n```\n\n`version`: The kubectl version with a 'v' prefix, e.g. `v1.21.0`. It defaults to the latest kubectl binary version available.\n\n`binaries-url`: The url to download the binaries from. It defaults to the official release page if empty.\n\n**Note**: Do not use kubectl config view as this will hide the certificate-authority-data.\n","funding_links":[],"categories":["Community Resources","Shell","五、按场景分类的实用Action"],"sub_categories":["Deployment","5. 部署发布"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fkubectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteebchen%2Fkubectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fkubectl/lists"}