Skip to content

Commit 2f952cc

Browse files
committed
Github actions with Helm
1 parent 6be855a commit 2f952cc

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88

9-
npm_test:
9+
npm_test_build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -19,10 +19,12 @@ jobs:
1919
check-latest: true
2020
- name: Install NPM dependencies
2121
run: npm ci
22+
# - name: Run tests
23+
# run: npm test
2224
- name: Test NPM compilation
2325
run: npm run prod
2426

25-
php_db_test:
27+
php_test_build:
2628
runs-on: ubuntu-latest
2729
container:
2830
image: kirschbaumdevelopment/laravel-test-runner:7.4
@@ -71,3 +73,20 @@ jobs:
7173
run: |
7274
php artisan generate:jwt-keypair
7375
vendor/phpunit/phpunit/phpunit tests/ --colors=never --configuration phpunit_gitlab.xml
76+
77+
helm-build:
78+
runs-on: ubuntu-latest
79+
needs: [npm_test_build, php_test_build]
80+
permissions:
81+
contents: write
82+
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v4
86+
with:
87+
fetch-depth: 0
88+
89+
- name: Run chart-releaser
90+
uses: helm/chart-releaser-action@v1.7.0
91+
env:
92+
CR_TOKEN: "${{ secrets.GH_TOKEN }}"

0 commit comments

Comments
 (0)