{"id":16160537,"url":"https://github.com/eallion/docker-hugo","last_synced_at":"2025-08-22T14:31:22.572Z","repository":{"id":69440371,"uuid":"561929553","full_name":"eallion/docker-hugo","owner":"eallion","description":"Hugo latest Docker image based on ubuntu:latest","archived":false,"fork":false,"pushed_at":"2024-10-24T14:12:28.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-02T06:43:28.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/eallion/hugo","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/eallion.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":"2022-11-04T20:28:04.000Z","updated_at":"2023-08-31T14:46:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f3c3a8d-e52f-47ec-891c-c94c78a84cdc","html_url":"https://github.com/eallion/docker-hugo","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"79824010df60bb88af21c6238db33af6dfebc04d"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Fdocker-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Fdocker-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Fdocker-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eallion%2Fdocker-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eallion","download_url":"https://codeload.github.com/eallion/docker-hugo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230603667,"owners_count":18251977,"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-10-10T02:03:19.193Z","updated_at":"2024-12-20T15:16:14.388Z","avatar_url":"https://github.com/eallion.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build latest Hugo  \n\nBuild latest Hugo Docker image based on `ubuntu:latest`  \n\n\u003e https://hub.docker.com/r/eallion/hugo\n\n# Usage\n\n### 1. Clone\n\n```bash\ngit clone https://github.com/eallion/docker-hugo\n```\n\n### 2. Download \n\n- Download Hugo latest via shell script.\n\n```bash\n./hugo.sh\n```\n\n- Or download `.deb` at [Hugo Releases](https://github.com/gohugoio/hugo/releases) mannerly, save it into `./tmp` folder named `hugo.deb`.\n\n### 3. Build image\n\n\u003e `eallion` is my Docker hub username.\n\n```bash\ndocker build -t eallion/hugo .\n```\n\n\u003e **Warning**   \n\u003e Don't forget the dot `.` at the end.  \n\nTest the image:  \n```\ndocker run --rm -it eallion/hugo hugo version\n```\nYou will get the message like this:\n```\nhugo v0.105.0-0e3b42b4a9bdeb4d866210819fc6ddcf51582ffa linux/amd64 BuildDate=2022-10-28T12:29:05Z VendorInfo=gohugoio\n```\n\n### 4. Push image\n\n- Login to Docker hub\n\n```\ndocker login -u eallion\n```\n\u003e Then enter the Docker hub token\n\n- Push image\n\n```\ndocker push eallion/hugo:latest\n```\n\n### 5. Push to other registry (Option)\n\n#### 5.1 Push to [Coding.net](https://eallion.coding.net/public-artifacts/eallion/hugo/packages)\n\n\u003e **Note**  \n\u003e You need to generate your own `\u003cPASSWORD\u003e`  \n\n- Login\n```\ndocker login -u \u003cUSERNAME\u003e -p \u003cPASSWORD\u003e eallion-docker.pkg.coding.net\n```\n\n- Retag\n```\ndocker tag eallion/hugo:latest eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest\n```\n\n- Push\n```\ndocker push eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest\n```\n\n- Pull\n```\ndocker pull eallion-docker.pkg.coding.net/eallion/hugo/hugo:latest\n```\n\n#### 5.2 Push to [Aliyun](https://www.aliyun.com/product/acr)  \n\n- Login\n```\ndocker login -u \u003cUSERNAME\u003e registry.cn-shanghai.aliyuncs.com\n```\n\n- Retag\n```\ndocker tag eallion/hugo:latest registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest\n```\n\n- Push\n```\ndocker push registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest\n```\n\n- Pull\n```\ndocker pull registry.cn-shanghai.aliyuncs.com/eallion/hugo:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feallion%2Fdocker-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feallion%2Fdocker-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feallion%2Fdocker-hugo/lists"}