Skip to content

Commit

Permalink
feat: push build automatically (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokto authored Jan 30, 2020
1 parent 680d142 commit 567af81
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
lint-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Lint Helm
uses: yeouchien/helm3-action@f3a7c239c5c60777210c8e631839edf5dd3fa29c
with:
Expand All @@ -25,7 +25,7 @@ jobs:
lint-db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Lint Helm
uses: yeouchien/helm3-action@f3a7c239c5c60777210c8e631839edf5dd3fa29c
with:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and push Chart

on:
push:
branches:
- develop

jobs:
build-push:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2
with:
path: 'main'

- uses: actions/checkout@v2
with:
path: 'gh-pages'

- run: |
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git checkout gh-pages
- name: Build zips
uses: yeouchien/helm3-action@f3a7c239c5c60777210c8e631839edf5dd3fa29c
with:
command: package main/sentry-db main/sentry --destination gh-pages/charts

- name: Create index file
uses: yeouchien/helm3-action@f3a7c239c5c60777210c8e631839edf5dd3fa29c
with:
command: repo index --url https://sentry-kubernetes.github.io/charts/charts ./gh-pages/charts

- name: Commit files
run: |
cd gh-pages
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@19caa5c351f47734055690f7d01aaaef2f9114d5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
directory: gh-pages

0 comments on commit 567af81

Please sign in to comment.