diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..7d426d1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 4f958e8..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: lint - -on: - pull_request: - -jobs: - lint: - - if: contains(toJson(github.event.commits), '[skip ci]') == false - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - run: git fetch --prune --unshallow - - - name: Lint - uses: helm/chart-testing-action@v1.0.0-rc.2 - with: - command: lint - config: ct.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 61efaef..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: release - -on: - push: - branches: - - 'master' - -jobs: - - release: - - if: contains(toJson(github.event.commits), '[skip ci]') == false - - runs-on: ubuntu-latest - - steps: - - 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 }}" \ No newline at end of file diff --git a/charts/ifsc-ical-generator/Chart.yaml b/charts/ifsc-ical-generator/Chart.yaml index 7a54562..738a5d8 100644 --- a/charts/ifsc-ical-generator/Chart.yaml +++ b/charts/ifsc-ical-generator/Chart.yaml @@ -10,4 +10,4 @@ maintainers: email: jamie@qwyck.net url: https://www.qwyck.co.uk -version: 0.3.1 +version: 0.4.0 diff --git a/charts/ifsc-ical-generator/values.yaml b/charts/ifsc-ical-generator/values.yaml index e953145..bb2847b 100644 --- a/charts/ifsc-ical-generator/values.yaml +++ b/charts/ifsc-ical-generator/values.yaml @@ -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