mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-10 16:34:42 +08:00
First comit of auto-deployment of helm charts
This commit is contained in:
parent
7f0ab1e24f
commit
cc0966c6de
1 changed files with 13 additions and 7 deletions
20
.github/workflows/tags.yml
vendored
20
.github/workflows/tags.yml
vendored
|
@ -10,14 +10,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout tag
|
- name: Checkout tag
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Checkout gh-pages
|
- name: Checkout gh-pages
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: "gh-pages"
|
ref: "gh-pages"
|
||||||
|
path: "gh-pages"
|
||||||
|
fetch-depth: 0
|
||||||
- name: Get the build version number
|
- name: Get the build version number
|
||||||
|
id: version_number
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
|
echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
|
||||||
|
@ -35,10 +35,16 @@ jobs:
|
||||||
- name: Package helm chart
|
- name: Package helm chart
|
||||||
uses: WyriHaximus/github-action-helm3@v2
|
uses: WyriHaximus/github-action-helm3@v2
|
||||||
with:
|
with:
|
||||||
# Successfully packaged chart and saved it to: /Users/boky/development/projects/docker-postfix/mail-2.1.0.tgz
|
exec: helm package --app-version $RELEASE_VERSION --version $RELEASE_VERSION --destination ./gh-pages helm/mail
|
||||||
exec: helm package --app-version $RELEASE_VERSION --version $RELEASE_VERSION --destination ./public helm/mail
|
- name: Create helm chart index
|
||||||
- name: Chart to gh-pages
|
uses: WyriHaximus/github-action-helm3@v2
|
||||||
|
with:
|
||||||
|
exec: cd gh-pages && helm repo index . --url https://bokysan.github.io/docker-postfix
|
||||||
|
- name: Upload gh-pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./public
|
publish_dir: ./gh-pages
|
||||||
|
tag_name: gh-pages-${{ steps.version_number.outputs.RELEASE_VERSION }}
|
||||||
|
keep_files: true
|
||||||
|
exclude_assets: '.git'
|
||||||
|
|
Loading…
Add table
Reference in a new issue