{"id":21802630,"url":"https://github.com/yc-actions/yc-coi-deploy-ig","last_synced_at":"2026-05-11T04:44:56.651Z","repository":{"id":103402038,"uuid":"588670818","full_name":"yc-actions/yc-coi-deploy-ig","owner":"yc-actions","description":"GitHub Action to deploy your container into Yandex Cloud instance group created from Container Optimized Image.","archived":false,"fork":false,"pushed_at":"2025-03-17T16:44:53.000Z","size":19771,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-17T17:44:30.437Z","etag":null,"topics":["container-optimized-image","deploy","docker","github-actions","instance-group","yandex-cloud"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yc-actions.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-13T17:40:19.000Z","updated_at":"2025-03-17T16:44:49.000Z","dependencies_parsed_at":"2023-04-25T17:24:33.455Z","dependency_job_id":"b8aa8ec7-e0da-4650-aefb-683510e568ed","html_url":"https://github.com/yc-actions/yc-coi-deploy-ig","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-coi-deploy-ig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-coi-deploy-ig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-coi-deploy-ig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-coi-deploy-ig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yc-actions","download_url":"https://codeload.github.com/yc-actions/yc-coi-deploy-ig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244752360,"owners_count":20504256,"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":["container-optimized-image","deploy","docker","github-actions","instance-group","yandex-cloud"],"created_at":"2024-11-27T11:29:55.202Z","updated_at":"2026-05-11T04:44:51.625Z","avatar_url":"https://github.com/yc-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GitHub Action to deploy your container into Yandex Cloud instance group created from Container Optimized Image.\n\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\n\nThe action creates a Instance Group with the provided name in the provided folder if there is no one. Then it deploys a\ncontainer using the provided image name and tag.\n\n**Table of Contents**\n\n\u003c!-- toc --\u003e\n\n- [Usage](#usage)\n- [Permissions](#permissions)\n- [License Summary](#license-summary)\n\n\u003c!-- tocstop --\u003e\n\n## Usage\n\n```yaml\n    - name: Login to Yandex Cloud Container Registry\n      id: login-cr\n      uses: yc-actions/yc-cr-login@v1\n      with:\n        yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}\n\n    - name: Build, tag, and push image to Yandex Cloud Container Registry\n      env:\n        CR_REGISTRY: crp00000000000000000\n        CR_REPOSITORY: my-cr-repo\n        IMAGE_TAG: ${{ github.sha }}\n      run: |\n        docker build -t cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG .\n        docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG\n\n    - name: Deploy COI Instance Group\n      id: deploy-coi\n      uses: yc-actions/yc-coi-deploy-ig@v2\n      env:\n        CR_REGISTRY: crp00000000000000000\n        CR_REPOSITORY: my-cr-repo\n        IMAGE_TAG: ${{ github.sha }}\n      with:\n        yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}\n        folder-id: bbajn5q2d74c********\n        ig-spec-path: './spec.yaml'\n        user-data-path: './user-data.yaml'\n        docker-compose-path: './docker-compose.yaml'\n```\n\nData from files `./spec.yaml`, `user-data.yaml`, and `docker-compose.yaml` will be passed to the Mustache template\nrenderer,\nso there could be used environment variables substitution via `{{ env.VARIABLE }}` syntax.\n\nSee [action.yml](action.yml) for the full documentation for this action's inputs and outputs.\n\n\u003e [!IMPORTANT]  \n\u003e If you want to be able to override the API endpoint, stick to `v1`.\n\n## Permissions\n\nTo perform this action, it is required that the service account on behalf of which we are acting has granted\nthe `compute.admin`, `vpc.admin`, and `iam.serviceAccounts.user` roles or greater.\n\nAlso, you'll need to add `loadbalancer.admin` if you use auto creating load balancer target groups via instance group\nspec.\n\n## License Summary\n\nThis code is made available under the MIT license.\n\n## Adding schema validation for spec.yaml in JetBrains IDEs\n\nIn the IDE press `cmd + ,` to open Preferences dialog.\n\n1. Then type `schema` in the search input\n2. Select `JSON Schema Mappings`\n3. Add new mapping\n4. Insert `https://raw.githubusercontent.com/yc-actions/yc-coi-deploy-ig/main/schema/CreateInstanceGroupRequest.json`\n   into Schema file or URL input\n5. Add file or pattern to apply the schema to.\n\n![prefernces screenshot](schema/prefernces.png)\n\nNow you'll get some suggestions when you'll type. Also, param types are checked and errors are highlighted.\n![suggest](schema/suggest.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyc-actions%2Fyc-coi-deploy-ig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyc-actions%2Fyc-coi-deploy-ig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyc-actions%2Fyc-coi-deploy-ig/lists"}