diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec5c4182..1d6dcc31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,21 +19,13 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install regctl - uses: regclient/actions/regctl-installer@main - with: - release: 'main' - name: Push image to docker hub run: | echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin - echo ${{ secrets.TENCENT_DOCKER_PASSWORD }} | docker login ccr.ccs.tencentyun.com -u ${{ secrets.TENCENT_DOCKER_USER }} --password-stdin docker buildx create --use make container - RELEASE_VERSION=${GITHUB_REF#refs/*/} - regctl image copy ghcr.io/kubenetworks/kubevpn:${RELEASE_VERSION} ccr.ccs.tencentyun.com/kubevpn/kubevpn:${RELEASE_VERSION} - regctl image copy ghcr.io/kubenetworks/kubevpn:${RELEASE_VERSION} ccr.ccs.tencentyun.com/kubevpn/kubevpn:latest - name: Release Note run: | @@ -225,18 +217,10 @@ jobs: --token "${{ secrets.CREATE_HELM_PR }}" \ --release-name-template "v{{ .Version }}" \ --index-path ./index.yaml \ + --charts-repo https://github.com/$owner/$repo \ --pages-branch master \ --pages-index-path charts/index.yaml \ - --push - ./cr index \ - --owner "$owner" \ - --git-repo charts \ - --token "${{ secrets.CREATE_HELM_PR }}" \ - --release-name-template "v{{ .Version }}" \ - --index-path ./index.yaml \ - --pages-branch master \ - --pages-index-path index.yaml \ - --push + --pr snapcraft: runs-on: ubuntu-24.04