From af439826bfced2f9af6fe7b970cb6207464c9aae Mon Sep 17 00:00:00 2001 From: WesleyCharlesBlake Date: Tue, 26 Apr 2022 12:30:20 +0200 Subject: [PATCH] fixes badly retrieved file --- .github/workflows/release.yaml | 1709 ++------------------------------ cr.yaml | 4 + ct.yaml | 7 + 3 files changed, 70 insertions(+), 1650 deletions(-) create mode 100644 cr.yaml create mode 100644 ct.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6fd8166..2184a91 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,1650 +1,59 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - charts-repo-actions-demo/release.yaml at main · helm/charts-repo-actions-demo · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Skip to content - - - - - - - - - - -
- -
- - - - - - - -
- - - -
- - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - -
- - - - - - -
- - -
- - - - - - -Permalink - -
- -
-
- - - main - - - - -
-
-
- Switch branches/tags - -
- - - -
- -
- -
- - -
- -
- - - - - - - - - - - - - - - -
- - -
-
-
-
- -
- -
- - - View runs - - Go to file - - -
- - - - - -
-
-
- - - - - - - - - -
- -
-
-
 
-
- -
-
 
- Cannot retrieve contributors at this time -
-
- - - - - - - - -
- -
- - -
- - 59 lines (47 sloc) - - 1.43 KB -
- - - -
- -
-
- - - -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
name: Release Charts
-
on:
push:
branches:
- main
-
jobs:
release:
runs-on: ubuntu-latest
-
permissions:
contents: write
-
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1
-
# Optional step if GPG signing is used
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
env:
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
-
- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
with:
charts_dir: charts
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
-
- - - -
- -
- - - - -
- - -
- - -
-
- - -
- -
- - -
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "POKT_CI" + git config user.email "helm-maintainers@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v1 + with: + version: v3.8.1 + + # Optional step if GPG signing is used +# - name: Prepare GPG key +# run: | +# gpg_dir=.cr-gpg +# mkdir "$gpg_dir" +# +# keyring="$gpg_dir/secring.gpg" +# base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring" +# +# passphrase_file="$gpg_dir/passphrase" +# echo "$GPG_PASSPHRASE" > "$passphrase_file" +# +# echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV" +# echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV" +# env: +# GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" +# GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" + + - name: Add dependency chart repos + run: | + helm repo add bitnami https://charts.bitnami.com/bitnami + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.0 + with: + charts_dir: charts + config: cr.yaml + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/cr.yaml b/cr.yaml new file mode 100644 index 0000000..3b20d54 --- /dev/null +++ b/cr.yaml @@ -0,0 +1,4 @@ +# Set to true for GPG signing +sign: true +# UID of the GPG key to use +key: Chart Releaser Test Key diff --git a/ct.yaml b/ct.yaml new file mode 100644 index 0000000..4c7d54c --- /dev/null +++ b/ct.yaml @@ -0,0 +1,7 @@ +remote: origin +target-branch: master +chart-dirs: + - charts +chart-repos: + - pokt=https://charts.bitnami.com/bitnami +helm-extra-args: --timeout 600s