{"id":623,"date":"2023-03-02T02:04:59","date_gmt":"2023-03-01T17:04:59","guid":{"rendered":"https:\/\/blog.homi.run\/?p=623"},"modified":"2023-03-02T02:04:59","modified_gmt":"2023-03-01T17:04:59","slug":"hugo%e3%82%92github-actions%e3%81%a7%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%a6argo-cd-image-updater%e3%81%a7kubernetes%e3%82%af%e3%83%a9%e3%82%b9%e3%82%bf%e3%81%ab%e3%83%87%e3%83%97%e3%83%ad","status":"publish","type":"post","link":"https:\/\/blog.homi.run\/?p=623","title":{"rendered":"Hugo\u3092GitHub Actions\u3067\u30d3\u30eb\u30c9\u3057\u3066Argo CD Image Updater\u3067Kubernetes\u30af\u30e9\u30b9\u30bf\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u8a71"},"content":{"rendered":"\n<p>Twitter\u3067\u306f\u9577\u6587\u66f8\u304d\u304c\u3061\u306e\u304f\u305b\u306b\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u3050\u3089\u3044\u9577\u3044\u6587\u7ae0\u3092\u66f8\u304f\u306e\u304c\u5104\u52ab\u306a\u306e\u3067\u3001\u305d\u306e\u4e2d\u9593\u3050\u3089\u3044\u306e\u65e5\u8a18\u30fb\u96d1\u8a18\u3092\u66f8\u304f\u5834\u6240\u3092 <a href=\"https:\/\/diary.homi.run\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/diary.homi.run<\/a> \u306b\u7528\u610f\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n<p><a href=\"https:\/\/github.com\/homirun\/diary\"><img decoding=\"async\" src=\"https:\/\/gh-card.dev\/repos\/homirun\/diary.svg\"><\/a><\/p>\n\n\n\n<p>\u6700\u521d\u306f\u3053\u3053\u3068\u540c\u3058\u304fWordPress\u306b\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u3088\u304f\u8003\u3048\u3066\u307f\u308b\u3068\u5225\u306bWordPress\u3058\u3083\u306a\u3044\u3068\u56f0\u308b\u3088\u3046\u306a\u8907\u96d1\u306a\u3053\u3068\u306f\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3061\u3087\u304f\u3061\u3087\u304f\u540d\u524d\u306e\u805e\u304fHugo\u3092\u5229\u7528\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3084\u308b\u306a\u3089\u305d\u308c\u306a\u308a\u306b\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3001Hugo\u3092\u30d3\u30eb\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3092GitHub Actions\u3067\u4f5c\u6210\u3057\u3001\u3059\u3067\u306b\u81ea\u5b85\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308bk0s\u30af\u30e9\u30b9\u30bf\u306bArgo CD Image Updater\u3092\u5c0e\u5165\u3057\u3066\u81ea\u52d5\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u307f\u305f\u3044\u306a\u3082\u306e\u3092\u4f5c\u3063\u305f\u3002\u4eca\u56de\u306f\u305d\u308c\u306b\u3064\u3044\u3066\u8efd\u304f\u307e\u3068\u3081\u3066\u304a\u3053\u3046\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GitHub Actions\u3067Hugo\u304b\u3089\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u30d3\u30eb\u30c9<\/h2>\n\n\n\n<p>Actions\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>on:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n\njobs:\n  push:\n    runs-on: ubuntu-latest\n    env:\n      IMAGE_NAME: diary\n    steps:\n      - name: checkout\n        uses: actions\/checkout@v3\n        with:\n          submodules: true\n          fetch-depth: 0\n      - name: Setup Hugo\n        uses: peaceiris\/actions-hugo@v2\n        with:\n          hugo-version: '0.110.0'\n          extended: true\n      - name: Build hugo\n        run: |\n          hugo --minify\n      - name: Set up Docker Buildx\n        uses: docker\/setup-buildx-action@v2\n      - name: Login to GitHub Container Registry\n        uses: docker\/login-action@v2\n        with:\n          registry: ghcr.io\n          username: ${{ github.repository_owner }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n      - name: setup metadata \n        id: meta\n        uses: docker\/metadata-action@v4\n        with:\n          images: ghcr.io\/homirun\/diary\n          tags: type=sha,format=long\n      - name: Build and Push\n        uses: docker\/build-push-action@v4\n        with:\n          context: .\/\n          push: true\n          tags: ${{ steps.meta.outputs.tags }}<\/code><\/pre>\n\n\n\n<p>\u7279\u7b46\u3059\u308b\u3068\u3059\u308c\u3070<code>peaceiris\/actions-hugo@v2<\/code>\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3060\u308d\u3046\u304b\u3002\u6700\u521d\u306fGo\u3068Hugo\u3092apt\u3067\u843d\u3068\u3057\u3066\u304d\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u304b\u3063\u305f\u308aHugo\u306e\u8ffd\u52a0\u306e\u3082\u308d\u3082\u308d\u304c\u5165\u3089\u306a\u304b\u3063\u305f\u308a\u3057\u3066\u9762\u5012\u3060\u3063\u305f\u3068\u3053\u308d\u306b\u4fbf\u5229Action\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u5229\u7528\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u4ed6\u306f\u898b\u305f\u307e\u3093\u307e\u3067Hugo\u304b\u3089\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3055\u305b\u3066\u3001\u305d\u308c\u3092<a href=\"https:\/\/github.com\/homirun\/diary\/blob\/main\/Dockerfile\" target=\"_blank\" rel=\"noopener\" title=\"\">nginx\u3092\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u306b\u3057\u305fDockerfile<\/a>\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057ghcr.io\u306bpush\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Argo CD Image Updater\u306e\u5229\u7528<\/h2>\n\n\n\n<p><a href=\"https:\/\/argocd-image-updater.readthedocs.io\/en\/stable\/\">Argo CD Image Updater<\/a>\u306f\u3001\u96d1\u306b\u8aac\u660e\u3059\u308b\u3068\u5b9a\u671f\u7684\u306b\u30b3\u30f3\u30c6\u30ca\u30ec\u30b8\u30b9\u30c8\u30ea\u3092\u898b\u306b\u884c\u3063\u3066\u66f4\u65b0\u304c\u3042\u308c\u3070\u305d\u306e\u65b0\u3057\u3044\u30a4\u30e1\u30fc\u30b8\u3092\u5229\u7528\u3057\u3066Deployment\u306a\u3069\u3092\u4f5c\u308a\u76f4\u3057\u3066\u304f\u308c\u308b\u541b\u3002<\/p>\n\n\n\n<p>\u96f0\u56f2\u6c17\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"229\" src=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/argocd-hugo.png\" alt=\"\" class=\"wp-image-637\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/argocd-hugo.png 644w, https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/argocd-hugo-300x107.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/argocd-image-updater.readthedocs.io\/en\/stable\/install\/installation\/\" target=\"_blank\" rel=\"noopener\" title=\"\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u6cbf\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3057\u305f\u4e0a\u3067Argo CD Image Updater\u3092\u5229\u7528\u3057\u305f\u3044Application\u30ea\u30bd\u30fc\u30b9\u306b\u7279\u5b9a\u306eannotation\u3092\u3064\u3051\u308b\u3060\u3051\u3067\u826f\u3044\u306e\u3067\u4fbf\u5229\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306aannotation\u3092\u3064\u3051\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: yaml; title: ; notranslate\" title=\"\">\nannotations:\n    argocd-image-updater.argoproj.io\/image-list: diary-image=ghcr.io\/homirun\/diary\n    argocd-image-updater.argoproj.io\/diary-image.update-strategy: latest\n<\/pre><\/div>\n\n\n<p>update-strategy\u306flatest\u306b\u3057\u305f\u3002latest\u306f<strong>\u30a4\u30e1\u30fc\u30b8\u304cbuild\u3055\u308c\u305f\u65e5\u6642\u304c\u6700\u65b0<\/strong>\u306e\u3082\u306e\u3092\u9078\u629e\u3059\u308b\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u3042\u308b\u3002push\u3055\u308c\u305f\u65e5\u6642\u3058\u3083\u306a\u3044\u306e\u3067\u6ce8\u610f\u3002<\/p>\n\n\n\n<p>\u6700\u7d42\u7684\u306b\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3088\u3057\u306a\u306bIMAGES\u304c\u66f4\u65b0\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-1024x414.png\" alt=\"\" class=\"wp-image-640\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-1024x414.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-300x121.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-768x310.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-1536x621.png 1536w, https:\/\/blog.homi.run\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-02-1.55.41-2048x828.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Argo CD Image Updater\u3067\u30cf\u30de\u3063\u305f\u70b9<\/h3>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b2023\/3\/2\u73fe\u5728\u3001Argo CD Image Updater\u306estable\u306f0.12.0\u306a\u306e\u3060\u304c\u3001\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067ghcr.io\u306b\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u76e3\u8996\u3055\u305b\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u3046\u307e\u304fmetadata\u3092\u5f15\u3063\u5f35\u3063\u3066\u3053\u308c\u305a\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3088\u3046\u3060\u3063\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nERRO&#x5B;0001] Error fetching metadata for homirun\/diary:latest - neither V1 or V2 or OCI manifest returned by registry: manifest unknown: OCI index found, but Accept header does not support OCI indexes  application=test image_alias= image_name=ghcr.io\/homirun\/diary registry_url=ghcr.io\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u30d0\u30b0\u81ea\u4f53\u306f\u3059\u3067\u306b<a href=\"https:\/\/github.com\/argoproj-labs\/argocd-image-updater\/issues\/522\">ISSUE\u5316\u3055\u308c\u305f\u4e0a\u3067\u4fee\u6b63<\/a>\u3055\u308c\u3066\u3044\u305f\u305f\u3081\u3001<em>https:\/\/raw.githubusercontent.com\/argoproj-labs\/argocd-image-updater\/v0.12.2\/manifests\/install.yaml<\/em> \u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u305f\u3068\u3053\u308d\u3001\u3046\u307e\u304f\u52d5\u304f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u305d\u3093\u306a\u611f\u3058\u3067\u697d\u306b\u904b\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3001\u98fd\u304d\u305a\u306b\u3069\u3046\u306b\u304b\u66f4\u65b0\u3067\u304d\u308b\u3053\u3068\u3092\u9858\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Twitter\u3067\u306f\u9577\u6587\u66f8\u304d\u304c\u3061\u306e\u304f\u305b\u306b\u30d6\u30ed\u30b0\u306e\u8a18\u4e8b\u3050\u3089\u3044\u9577\u3044\u6587\u7ae0\u3092\u66f8\u304f\u306e\u304c\u5104\u52ab\u306a\u306e\u3067\u3001\u305d\u306e\u4e2d\u9593\u3050\u3089\u3044\u306e\u65e5\u8a18\u30fb\u96d1\u8a18\u3092\u66f8\u304f\u5834\u6240\u3092 https:\/\/diary.homi.run \u306b\u7528\u610f\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002 \u6700\u521d\u306f\u3053\u3053\u3068\u540c\u3058\u304fWor &hellip; <a href=\"https:\/\/blog.homi.run\/?p=623\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Hugo\u3092GitHub Actions\u3067\u30d3\u30eb\u30c9\u3057\u3066Argo CD Image Updater\u3067Kubernetes\u30af\u30e9\u30b9\u30bf\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u8a71&#8221;\u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=623"}],"version-history":[{"count":19,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":644,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/623\/revisions\/644"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/media\/637"}],"wp:attachment":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}