{"id":21401133,"url":"https://github.com/massdriver-cloud/kubernetes-deploy-github-action","last_synced_at":"2026-01-24T19:54:30.864Z","repository":{"id":41114519,"uuid":"490062693","full_name":"massdriver-cloud/kubernetes-deploy-github-action","owner":"massdriver-cloud","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-28T17:14:46.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-13T21:37:06.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/massdriver-cloud.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}},"created_at":"2022-05-08T21:50:02.000Z","updated_at":"2023-01-25T18:38:29.000Z","dependencies_parsed_at":"2022-08-27T04:10:16.747Z","dependency_job_id":null,"html_url":"https://github.com/massdriver-cloud/kubernetes-deploy-github-action","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/massdriver-cloud/kubernetes-deploy-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fkubernetes-deploy-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fkubernetes-deploy-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fkubernetes-deploy-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fkubernetes-deploy-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/massdriver-cloud","download_url":"https://codeload.github.com/massdriver-cloud/kubernetes-deploy-github-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/massdriver-cloud%2Fkubernetes-deploy-github-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28735524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"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-22T15:26:16.230Z","updated_at":"2026-01-24T19:54:30.841Z","avatar_url":"https://github.com/massdriver-cloud.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubernetes-deploy-github-action\n\n### Prerequisites\n\nA Massdriver-provisioned Kubernetes cluster.\n\n### Adding A GitHub Action Secret\n\nThis action expects an evironment variable called `ARTIFACT_KUBERNETES_CLUSTER` with the value set as a Massdriver _artifact_. In the Massdriver UI, navigate to your artifacts and search for `kubernetes-cluster`. Make sure it's for the project and target you want to deploy to, then click the arrow in the _Actions_ column.\n\nMassdriver supports downloading both a \"raw\" json artifact and a Kube Config yaml file. Click the arrow next to _Download Raw_ and you'll see the option for the Kube Config file. Select _Kube Config_ and then click the button to download the file.\n\nAdd this file as a _Repository Secret_ to the repository you want to run Continuous Deployment from. Most likey, this will be the same repository that your application lives, since that's the sha that the application image will be tagged with.\n\n### Example Usage - AWS\n\nSee the `examples` folder for a build and push workflow as we support more cloud providers.\n\n```yaml\nname: Deploy to staging\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build_and_push:\n    name: Build and push\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n\n      - name: Configure AWS credentials\n        uses: aws-actions/configure-aws-credentials@v1\n        with:\n          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          aws-region: us-west-2\n\n      - name: Login to ECR\n        id: ecr-Login\n        uses: aws-actions/amazon-ecr-login@v1\n\n      - name: Docker meta\n        id: meta\n        uses: docker/metadata-action@v3\n        with:\n          flavor: |\n            latest=true\n          images: \u003caccount-id\u003e.dkr.ecr.us-west-2.amazonaws.com/${{ github.repository }}\n          tags: |\n            type=ref,event=branch\n            type=sha\n      - name: Build and push\n        id: docker-build\n        uses: docker/build-push-action@v2\n        with:\n          push: true\n          tags: ${{ steps.meta.outputs.tags }}\n\n  deploy_application:\n    name: Deploy\n    runs-on: ubuntu-latest\n    # waits for the image to be build and pushed to ECR\n    needs: build_and_push\n    steps:\n      - name: Deploy the application\n        uses: massdriver-cloud/kubernetes-deploy-github-action@v1.1.0\n        env:\n          ARTIFACT_KUBERNETES_CLUSTER: ${{ secrets.ARTIFACT_KUBERNETES_CLUSTER_STAGING }}\n          APPLICATION_NAME: infra-staging-myapp-884422\n          IMAGE: \u003caws_account_id\u003e.dkr.ecr.us-west-2.amazonaws.com/\u003corganization\u003e/\u003capplication\u003e:${{ github.sha }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassdriver-cloud%2Fkubernetes-deploy-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmassdriver-cloud%2Fkubernetes-deploy-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmassdriver-cloud%2Fkubernetes-deploy-github-action/lists"}