refactor!: rename otf chart to otfd #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: default | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- master | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Lint | |
run: | | |
helm lint ./charts/otfd | |
helm lint ./charts/otf-agent | |
- name: Render | |
run: | | |
helm template ./charts/otfd | |
helm template ./charts/otf-agent --set token=my_agent_token --set address=https://otf.ninja | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
- name: Test | |
run: | | |
make test-otfd | |
- name: Debug | |
if: failure() | |
run: | | |
kubectl -n otfd-test get all | |
kubectl -n otfd-test describe pod | |
kubectl -n otfd-test logs -l app.kubernetes.io/name=postgresql | |
kubectl -n otfd-test logs -l app.kubernetes.io/name=otfd | |
release: | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: lint-test | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Add dependency repos | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
skip_existing: true | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |