Skip to content
anchor

GitHub Action

Helm Push Action (OCI-based)

v1 Latest version

Helm Push Action (OCI-based)

anchor

Helm Push Action (OCI-based)

Push Charts to OCI-based Helm Registry

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Helm Push Action (OCI-based)

uses: central-x/helm-push-action@v1

Learn more about this action in central-x/helm-push-action

Choose a version

Helm Push Action (OCI-based)

概述

  用于在 GitHub Action 运行环境中将指定 Chart 推送到基于 OCI 的注册中心。使用此 Action 时,一般需要配合 Helm Login Action[链接]使用。

使用方法

name: ci

on:
  push:

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Helm Setup
        uses: azure/setup-helm@v3
        with:
          version: 3.14.0
      - name: Login to DockerHub
        uses: central-x/helm-login-action@v1
        with:
          registry: registry-1.docker.io
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}
      - name: Push Helm Chart
        uses: central-x/helm-push-action@v1
        with:
          repository: oci://registry-1.docker.io/<username>
          chart: ./<path-to-chart>

自定义

输入参数(inputs)

  以下输入参数可以用于 steps.with:

参数名称 类型 默认值 必选 描述
repository String 仓库地址
chart String 待推送的 Helm Chart 文件夹