{"id":23461997,"url":"https://github.com/cslant/blog-runner","last_synced_at":"2025-04-12T06:58:40.075Z","repository":{"id":261904677,"uuid":"830788845","full_name":"cslant/blog-runner","owner":"cslant","description":"This repo is to set up the runner for updating the blog at https://cslant.com/blog","archived":false,"fork":false,"pushed_at":"2025-03-14T03:04:36.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T06:58:36.507Z","etag":null,"topics":["blog","cslant","cslant-blog","cslant-cicd","cslant-github","cslant-runner","deploy","runner"],"latest_commit_sha":null,"homepage":"https://cslant.com/blog","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/cslant.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":"2024-07-19T02:19:17.000Z","updated_at":"2025-03-14T03:04:39.000Z","dependencies_parsed_at":"2024-11-09T06:29:03.988Z","dependency_job_id":"7c05c7b9-a6e0-4f5e-9175-305a888bf5a8","html_url":"https://github.com/cslant/blog-runner","commit_stats":null,"previous_names":["cslant/blog-runner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Fblog-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Fblog-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Fblog-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cslant%2Fblog-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cslant","download_url":"https://codeload.github.com/cslant/blog-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530578,"owners_count":21119595,"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":["blog","cslant","cslant-blog","cslant-cicd","cslant-github","cslant-runner","deploy","runner"],"created_at":"2024-12-24T08:15:24.030Z","updated_at":"2025-04-12T06:58:40.055Z","avatar_url":"https://github.com/cslant.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSlant Blog Runner\n\n```text\n██████╗ ██╗      ██████╗  ██████╗     ██████╗ ██╗   ██╗███╗   ██╗███╗   ██╗███████╗██████╗ \n██╔══██╗██║     ██╔═══██╗██╔════╝     ██╔══██╗██║   ██║████╗  ██║████╗  ██║██╔════╝██╔══██╗\n██████╔╝██║     ██║   ██║██║  ███╗    ██████╔╝██║   ██║██╔██╗ ██║██╔██╗ ██║█████╗  ██████╔╝\n██╔══██╗██║     ██║   ██║██║   ██║    ██╔══██╗██║   ██║██║╚██╗██║██║╚██╗██║██╔══╝  ██╔══██╗\n██████╔╝███████╗╚██████╔╝╚██████╔╝    ██║  ██║╚██████╔╝██║ ╚████║██║ ╚████║███████╗██║  ██║\n╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝\n```\n\nThis repo is to set up the runner for updating the blog at https://cslant.com/blog\n\nWe can use this runner to update the Blog automatically with CI/CD pipelines.\n\n## Installation\n\nFirst, copy the `.env.example` file to `.env` and update the values.\n\n```bash\nenvsubst \u003c .env.example \u003e .env\n```\n\nIf you don't have `envsubst` command, you can use the following command:\n\n```bash\ncp .env.example .env\n```\n\nIn the `.env` file, update the values to match your environment.\n\n```bash\n# .env\n\n#SOURCE_DIR=~/source\nSOURCE_DIR=/home/user/cslant.com/blog\n\nGIT_SSH_URL=git@github.com:cslant\n\n# The name of the runner\nWORKER_NAME=\"CSlant Blog\"\n\n# add the env to choose \"npm\" or \"yarn\" as the installer\nINSTALLER=yarn\n\n# App Config\n# E.g: prod, dev\nENV=prod\n\nNODE_VERSION=22\n\nUSE_SUBMODULES=false\n```\n\n\u003e [!IMPORTANT]\n\u003e ## Command can't be used if wrong values are set in the `.env` file.\n\u003e * If the `SOURCE_DIR` is wrong, the runner will not be able to find the source code. So, please make sure the `SOURCE_DIR` is correct.\n\nThen, you can just run the following command to start the runner.\n\n```bash\n./runner.sh a\n```\n\n## Usage\n\nThe runner has the following commands:\n\n| Command             | Description                              |\n|---------------------|------------------------------------------|\n| `help`, `tips`      | Shows the help message                   |\n| `build`, `b`        | Builds the Blog                          |\n| `worker`, `w`       | Create or restart the worker             |\n| `sync`, `blog_sync` | Sync the Blog with the remote repository |\n| `all`, `a`          | Runs all the commands                    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcslant%2Fblog-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcslant%2Fblog-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcslant%2Fblog-runner/lists"}