Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from jrmcdonald/ifsc-ingress
Browse files Browse the repository at this point in the history
Add TLS to ifsc-ical-generator ingress
  • Loading branch information
jrmcdonald authored Apr 28, 2020
2 parents 9483f79 + 7ec5615 commit 120afd2
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 61 deletions.
108 changes: 108 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: build

on: [push, pull_request]

env:
slack-channel: 'status-ci-cd'

jobs:
lint:
runs-on: ubuntu-latest

if: contains(toJson(github.event.commits), '[skip ci]') == false

steps:
- name: Notify Slack Started
uses: voxmedia/github-action-slack-notify-build@v1
id: slack
with:
channel: ${{ env.slack-channel }}
status: LINT STARTED
color: warning
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

- uses: actions/checkout@v2
- run: git fetch --prune --unshallow

- name: Lint Charts
uses: helm/chart-testing-action@v1.0.0-rc.2
with:
command: lint
config: ct.yaml

- name: Notify Slack Success
if: success()
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: ${{ env.slack-channel }}
status: LINT SUCCESS
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Notify Slack Failed
if: failure()
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: ${{ env.slack-channel }}
status: LINT FAILED
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

release:
runs-on: ubuntu-latest

if: contains(github.ref, 'master') && contains(github.event_name, 'push') && contains(toJson(github.event.commits), '[skip ci]') == false

steps:
- name: Notify Slack Started
uses: voxmedia/github-action-slack-notify-build@v1
id: slack
with:
channel: ${{ env.slack-channel }}
status: RELEASE STARTED
color: warning
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

- uses: actions/checkout@v2
- run: git fetch --prune --unshallow

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Release Charts
uses: helm/chart-releaser-action@v1.0.0-rc.1
with:
charts_dir: charts/
charts_repo_url: http://www.qwyck.co.uk/helm-charts/
env:
CR_TOKEN: "${{ secrets.CHART_RELEASER_TOKEN }}"

- name: Notify Slack Success
if: success()
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: ${{ env.slack-channel }}
status: RELEASE SUCCESS
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Notify Slack Failed
if: failure()
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: ${{ env.slack-channel }}
status: RELEASE FAILED
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
22 changes: 0 additions & 22 deletions .github/workflows/lint.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/ifsc-ical-generator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ maintainers:
email: jamie@qwyck.net
url: https://www.qwyck.co.uk

version: 0.3.1
version: 0.4.0
12 changes: 6 additions & 6 deletions charts/ifsc-ical-generator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: ifsc.qwyck.co.uk
- host: ifsc.qwyck-cloud.co.uk
paths: ["/"]
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
tls:
- secretName: ifsc-ical-generator-tls
hosts:
- ifsc.qwyck-cloud.co.uk

ports:
- name: http
Expand Down

0 comments on commit 120afd2

Please sign in to comment.