Skip to content

Commit 812a770

Browse files
committed
release - v0.0.1
1 parent 8485545 commit 812a770

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/prod.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy helm chart to prod
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- uses: azure/[email protected]
17+
id: install
18+
19+
- name: Package chart
20+
run: |
21+
cd ./charts
22+
helm package ./bunkerweb/
23+
24+
- name: Upload files via SSH
25+
env:
26+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
27+
SSH_HOST: ${{ secrets.SSH_HOST }}
28+
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
29+
run: |
30+
mkdir -p ~/.ssh
31+
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
32+
chmod 600 ~/.ssh/id_ed25519
33+
ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
34+
cd charts
35+
scp *.tgz $SSH_USERNAME@$SSH_HOST:/var/www/html/charts
36+
scp $SSH_USERNAME@$SSH_HOST:/var/www/html/charts/* .
37+
helm repo index . --url https://repo.bunkerweb.io/charts
38+
scp *.tgz $SSH_USERNAME@$SSH_HOST:/var/www/html/charts
39+
scp index.yaml $SSH_USERNAME@$SSH_HOST:/var/www/html/charts

charts/bunkerweb/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.3
18+
version: 0.0.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

0 commit comments

Comments
 (0)