mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-08-04 06:53:03 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef77416cd2 | |||
| 5c82dc0e65 |
@@ -8,12 +8,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker.io/thegeeklab/git-sv:2.1.3
|
container: docker.io/thegeeklab/git-sv:3.0.0
|
||||||
steps:
|
steps:
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: |
|
run: |
|
||||||
apk add -q --update --no-cache nodejs curl jq sed
|
apk add -q --update --no-cache nodejs curl jq sed
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Generate upcoming changelog
|
- name: Generate upcoming changelog
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: commitlint/commitlint:21.2.1
|
container: commitlint/commitlint:21.2.1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- name: check PR title
|
- name: check PR title
|
||||||
run: |
|
run: |
|
||||||
echo "${{ gitea.event.pull_request.title }}" | commitlint --config .commitlintrc.json
|
echo "${{ gitea.event.pull_request.title }}" | commitlint --config .commitlintrc.json
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ jobs:
|
|||||||
generate-chart-publish:
|
generate-chart-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
|
|
||||||
- name: install Docker CLI
|
- name: install Docker CLI
|
||||||
uses: https://github.com/docker/setup-buildx-action@v4 # Gitea
|
uses: https://github.com/docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4 # Gitea
|
||||||
#uses: docker/setup-buildx-action@v4 # Github / Act
|
#uses: docker/setup-buildx-action@v4 # Github / Act
|
||||||
|
|
||||||
- name: install Helm
|
- name: install Helm
|
||||||
uses: https://github.com/Azure/setup-helm@v5 # Gitea
|
uses: https://github.com/Azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5 # Gitea
|
||||||
#uses: Azure/setup-helm@v5 # Github / Act
|
#uses: Azure/setup-helm@v5 # Github / Act
|
||||||
with:
|
with:
|
||||||
version: "${{ env.HELM_VERSION }}"
|
version: "${{ env.HELM_VERSION }}"
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- name: import GPG key
|
- name: import GPG key
|
||||||
id: import_gpg
|
id: import_gpg
|
||||||
uses: https://github.com/crazy-max/ghaction-import-gpg@v7 # Gitea
|
uses: https://github.com/crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7 # Gitea
|
||||||
#uses: crazy-max/ghaction-import-gpg@v7 # Github / Act
|
#uses: crazy-max/ghaction-import-gpg@v7 # Github / Act
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
||||||
|
|
||||||
- name: log into Docker Hub
|
- name: log into Docker Hub
|
||||||
uses: https://github.com/docker/login-action@v4 # Gitea
|
uses: https://github.com/docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4 # Gitea
|
||||||
#uses: docker/login-action@v4 # Github / Act
|
#uses: docker/login-action@v4 # Github / Act
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_CHARTS_USERNAME }}
|
username: ${{ secrets.DOCKER_CHARTS_USERNAME }}
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
TAR_OPTIONS: "--wildcards"
|
TAR_OPTIONS: "--wildcards"
|
||||||
|
|
||||||
- name: aws credential configure
|
- name: aws credential configure
|
||||||
uses: https://github.com/aws-actions/configure-aws-credentials@v6 # Gitea
|
uses: https://github.com/aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6 # Gitea
|
||||||
#uses: aws-actions/configure-aws-credentials@v6 # Github / Act
|
#uses: aws-actions/configure-aws-credentials@v6 # Github / Act
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
||||||
@@ -79,3 +79,13 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
aws s3 sync actions/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/
|
aws s3 sync actions/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/
|
||||||
|
|
||||||
|
- name: Copy files to Cloudflare R2
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_DEFAULT_REGION: auto
|
||||||
|
CLOUDFLARE_R2_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_R2_ACCOUNT_ID }}
|
||||||
|
CLOUDFLARE_R2_BUCKET: ${{ secrets.CLOUDFLARE_R2_BUCKET }}
|
||||||
|
run: |
|
||||||
|
aws s3 sync actions/ s3://${CLOUDFLARE_R2_BUCKET}/charts/ --endpoint-url https://${CLOUDFLARE_R2_ACCOUNT_ID}.r2.cloudflarestorage.com
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ jobs:
|
|||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- run: apt update --yes && apt install --yes shellcheck
|
- run: apt update --yes && apt install --yes shellcheck
|
||||||
- run: find . -type f -name "*.sh" -exec shellcheck -a {} \;
|
- run: find . -type f -name "*.sh" -exec shellcheck -a {} \;
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ jobs:
|
|||||||
apk update
|
apk update
|
||||||
apk add --update bash make nodejs npm yamllint ncurses
|
apk add --update bash make nodejs npm yamllint ncurses
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v6
|
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
|
||||||
with:
|
with:
|
||||||
version: 11
|
version: 11
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
||||||
- name: install chart dependencies
|
- name: install chart dependencies
|
||||||
run: helm dependency build
|
run: helm dependency build
|
||||||
- name: lint
|
- name: lint
|
||||||
@@ -49,4 +49,4 @@ jobs:
|
|||||||
git diff --exit-code --name-only README.md
|
git diff --exit-code --name-only README.md
|
||||||
- name: yaml lint
|
- name: yaml lint
|
||||||
# uses: ibiqlik/action-yamllint@v3 # Github / Act
|
# uses: ibiqlik/action-yamllint@v3 # Github / Act
|
||||||
uses: https://github.com/ibiqlik/action-yamllint@v3 # Gitea
|
uses: https://github.com/ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3 # Gitea
|
||||||
|
|||||||
Reference in New Issue
Block a user