|
1 |
| -# This is a basic workflow to help you get started with Actions |
2 |
| - |
3 |
| -name: CI |
4 |
| - |
5 |
| -# Controls when the action will run. |
| 1 | +name: publish-charts |
6 | 2 | on:
|
7 |
| - # Triggers the workflow on push or pull request events but only for the main branch |
8 | 3 | push:
|
9 |
| - branches: [main] |
10 |
| - |
11 |
| - # Allows you to run this workflow manually from the Actions tab |
| 4 | + branches: |
| 5 | + - main |
| 6 | + paths: |
| 7 | + - charts/** |
| 8 | + - '!**/*.md' |
12 | 9 | workflow_dispatch:
|
13 |
| - |
14 |
| -# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
15 |
| -jobs: |
16 |
| - release: |
| 10 | +jobs: # TODO: refactor plublish of charts |
| 11 | + publish-charts: |
17 | 12 | runs-on: ubuntu-latest
|
| 13 | + permissions: |
| 14 | + packages: write |
| 15 | + contents: read |
18 | 16 | steps:
|
19 |
| - - name: Checkout |
20 |
| - uses: actions/checkout@v2 |
| 17 | + - uses: actions/checkout@v4 |
| 18 | + |
| 19 | + - name: Build dependencies Helm - backstage |
| 20 | + uses: WyriHaximus/github-action-helm3@v3 |
| 21 | + with: |
| 22 | + exec: helm dependency build charts/backstage |
| 23 | + |
| 24 | + - name: Chart | Push - backstage |
| 25 | + |
| 26 | + with: |
| 27 | + name: backstage |
| 28 | + repository: pelotech/charts |
| 29 | + tag: 0.2.3 |
| 30 | + registry: ghcr.io |
| 31 | + registry_username: ${{ github.actor }} |
| 32 | + registry_password: ${{ secrets.github_token }} |
| 33 | + |
| 34 | + - name: Build dependencies Helm - cube-stack |
| 35 | + uses: WyriHaximus/github-action-helm3@v3 |
| 36 | + with: |
| 37 | + exec: helm dependency build charts/cube-stack |
| 38 | + |
| 39 | + - name: Chart | Push - cube-stack |
| 40 | + |
| 41 | + with: |
| 42 | + name: cube-stack |
| 43 | + repository: pelotech/charts |
| 44 | + tag: 0.2.0 |
| 45 | + registry: ghcr.io |
| 46 | + registry_username: ${{ github.actor }} |
| 47 | + registry_password: ${{ secrets.github_token }} |
| 48 | + |
| 49 | + - name: Build dependencies Helm - cubejs |
| 50 | + uses: WyriHaximus/github-action-helm3@v3 |
21 | 51 | with:
|
22 |
| - fetch-depth: 0 |
| 52 | + exec: helm dependency build charts/cubejs |
23 | 53 |
|
24 |
| - - name: Configure Git |
25 |
| - run: | |
26 |
| - git config user.name "$GITHUB_ACTOR" |
27 |
| - git config user.email "[email protected]" |
| 54 | + - name: Chart | Push - cubejs |
| 55 | + |
| 56 | + with: |
| 57 | + name: cubejs |
| 58 | + repository: pelotech/charts |
| 59 | + tag: 0.2.0 |
| 60 | + registry: ghcr.io |
| 61 | + registry_username: ${{ github.actor }} |
| 62 | + registry_password: ${{ secrets.github_token }} |
| 63 | + |
| 64 | + - name: Build dependencies Helm - cuebestore |
| 65 | + uses: WyriHaximus/github-action-helm3@v3 |
| 66 | + with: |
| 67 | + exec: helm dependency build charts/cubestore |
28 | 68 |
|
29 |
| - - name: Install Helm |
30 |
| - uses: azure/setup-helm@v1 |
| 69 | + - name: Chart | Push - cubestore |
| 70 | + uses: appany/helm[email protected] |
31 | 71 | with:
|
32 |
| - version: v3.4.0 |
| 72 | + name: cubestore |
| 73 | + repository: pelotech/charts |
| 74 | + tag: 0.2.0 |
| 75 | + registry: ghcr.io |
| 76 | + registry_username: ${{ github.actor }} |
| 77 | + registry_password: ${{ secrets.github_token }} |
33 | 78 |
|
34 |
| - - name: Add Chart Repos |
35 |
| - run: | |
36 |
| - helm repo add bitnami https://charts.bitnami.com/bitnami |
| 79 | + - name: Build dependencies Helm - mutating-webhook |
| 80 | + uses: WyriHaximus/github-action-helm3@v3 |
| 81 | + with: |
| 82 | + exec: helm dependency build charts/mutating-webhook |
37 | 83 |
|
38 |
| - - name: Run chart-releaser |
39 |
| - |
40 |
| - env: |
41 |
| - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
| 84 | + - name: Chart | Push - mutating-webhook |
| 85 | + |
| 86 | + with: |
| 87 | + name: mutating-webhook |
| 88 | + repository: pelotech/charts |
| 89 | + tag: 0.1.1 |
| 90 | + registry: ghcr.io |
| 91 | + registry_username: ${{ github.actor }} |
| 92 | + registry_password: ${{ secrets.github_token }} |
| 93 | + |
| 94 | + - name: Build dependencies Helm - nodejs |
| 95 | + uses: WyriHaximus/github-action-helm3@v3 |
| 96 | + with: |
| 97 | + exec: helm dependency build charts/nodejs |
| 98 | + |
| 99 | + - name: Chart | Push - nodejs |
| 100 | + |
| 101 | + with: |
| 102 | + name: nodejs |
| 103 | + repository: pelotech/charts |
| 104 | + tag: 0.2.1 |
| 105 | + registry: ghcr.io |
| 106 | + registry_username: ${{ github.actor }} |
| 107 | + registry_password: ${{ secrets.github_token }} |
| 108 | + |
| 109 | + - name: Build dependencies Helm - pachyderm |
| 110 | + uses: WyriHaximus/github-action-helm3@v3 |
| 111 | + with: |
| 112 | + exec: helm dependency build charts/pachyderm |
| 113 | + |
| 114 | + - name: Chart | Push - pachyderm |
| 115 | + |
| 116 | + with: |
| 117 | + name: pachyderm |
| 118 | + repository: pelotech/charts |
| 119 | + tag: 0.2.1 |
| 120 | + registry: ghcr.io |
| 121 | + registry_username: ${{ github.actor }} |
| 122 | + registry_password: ${{ secrets.github_token }} |
0 commit comments