{"id":19456844,"url":"https://github.com/porter-dev/porter-cli-action","last_synced_at":"2025-02-25T10:50:22.672Z","repository":{"id":38973699,"uuid":"416527388","full_name":"porter-dev/porter-cli-action","owner":"porter-dev","description":"Github action that runs an arbitrary Porter CLI argument. ","archived":false,"fork":false,"pushed_at":"2024-06-25T15:08:40.000Z","size":89,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T16:56:52.049Z","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/porter-dev.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-10-12T23:27:18.000Z","updated_at":"2024-06-25T15:08:44.000Z","dependencies_parsed_at":"2024-03-19T18:28:31.112Z","dependency_job_id":"38d6bc66-96e0-4785-b299-e54c1160ed6a","html_url":"https://github.com/porter-dev/porter-cli-action","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.4,"last_synced_commit":"54984bab5b3e2903bc6fb1986d99c57ad56011ff"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fporter-cli-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fporter-cli-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fporter-cli-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fporter-cli-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/porter-dev","download_url":"https://codeload.github.com/porter-dev/porter-cli-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240654161,"owners_count":19835856,"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":[],"created_at":"2024-11-10T17:18:42.037Z","updated_at":"2025-02-25T10:50:22.605Z","avatar_url":"https://github.com/porter-dev.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# porter-cli-action\n\nThis Github action runs a CLI command using the Porter CLI. \n\n## Usage\n\n```yaml\nsteps:\n  - name: Run a Porter CLI command\n    uses: porter-dev/porter-cli-action@v0.1.0\n    with:\n      command: version\n    env:\n      PORTER_HOST: https://dashboard.porter.run\n      PORTER_CLUSTER: 1234\n      PORTER_PROJECT: 4321\n      PORTER_TOKEN: ${{ secrets.PORTER_TOKEN }}\n```\n\n## Configuration Options\n\nThe possible inputs are:\n\n- `command`: (string, required): The subcommand to run for the Porter CLI. Run `porter -h` locally with the latest CLI to see the full list of options. \n\n## Example \n\nTo run a Porter CLI command that builds from a Dockerfile with the path `./docker/Dockerfile`, you could run the following:\n\n```yaml\nsteps:\n  - name: Checkout code\n    uses: actions/checkout@v2.3.4\n  - name: Set Github tag\n    id: vars\n    run: echo \"::set-output name=sha_short::$(git rev-parse --short HEAD)\"\n  - name: Update a Porter application\n    timeout-minutes: 20\n    uses: porter-dev/porter-cli-action@v0.1.0\n    with:\n      command: update --app my-app --tag ${{ steps.vars.outputs.sha_short }} --dockerfile ./docker/Dockerfile --stream\n    env:\n      PORTER_HOST: https://dashboard.getporter.dev\n      PORTER_CLUSTER: 1234\n      PORTER_PROJECT: 4321\n      PORTER_TOKEN: ${{ secrets.PORTER_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporter-dev%2Fporter-cli-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fporter-dev%2Fporter-cli-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporter-dev%2Fporter-cli-action/lists"}