Skip to content

Commit

Permalink
Removed Travis's scripts and updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenwood committed Apr 3, 2024
1 parent c9cfe7e commit 6a7eacc
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 151 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/package_and_push_helm_chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ on:
branches:
- dev
- release
- devops/FAIRSPC-55_github_actions
workflow_dispatch:
inputs:
name:
description: "Manual trigger for Helm chart packaging and pushing"
release_type:
description: "Release or snapshot version?"
required: true
default: "SNAPSHOT"
options:
- "SNAPSHOT"
- "RELEASE"
version:
description: "Version of the Helm chart to push"
required: false

jobs:
deploy:
Expand All @@ -37,22 +32,26 @@ jobs:
- name: Add/update Helm dependencies
run: |
helm repo add codecentric https://codecentric.github.io/helm-charts
helm dependency update "charts/fairspace-keycloak"
# helm dependency update "charts/fairspace-keycloak"

- name: Prepare version
run: |
VERSION=$(cat ./VERSION)
if [[ ${{ github.event.inputs.release_type }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Building images from the branch: $BRANCH"
if [ $BRANCH != "release" ]; then
VERSION=$VERSION-SNAPSHOT
fi
# override version of custom input is provided
if [[ -n "${{ github.event.inputs.version }}" ]]; then
VERSION=${{ github.event.inputs.version }}
fi
echo "Helm charts version to be deployed: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Package and Push Helm chart to repository
run: |
helm lint "charts/fairspace-keycloak"
helm package "charts/fairspace-keycloak" --version ${{ env.VERSION }}
helm push "fairspace-keycloak-${{ env.VERSION }}.tgz" "oci://${{ vars.HELM_REGISTRY }}"
echo "Pushed package to repository"
- name: Clean up
run: |
rm -rf "fairspace-keycloak*.tgz"
84 changes: 0 additions & 84 deletions .travis.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .travis/add_pod_annotations.sh

This file was deleted.

Binary file removed .travis/ci-service-account.json.enc
Binary file not shown.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ This repository contains the helm chart to install and setup Keycloak.

See [charts/fairspace-keycloak](charts/fairspace-keycloak/README.md) for more information.

# Deployment scripts
Deployment scripts can be found in the [fairspace-build-scripts](https://github.com/fairspace/fairspace-build-scripts) repository. They are
run by travis-ci, as setup in the `.travis.yml` file.
# Helm chart
Helm charts are packaged and published to the GitHub package registry (Packages) with GitHub Actions workflow, can be found in `.github/workflows/package_and_push_helm_chart.yaml `

```yaml

# License

Expand Down
9 changes: 0 additions & 9 deletions charts/.travis/build.sh

This file was deleted.

16 changes: 0 additions & 16 deletions charts/.travis/install.sh

This file was deleted.

1 change: 1 addition & 0 deletions charts/fairspace-keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ fairspaceKeycloak:
cpu: "500m"
memory: "2048Mi"
postgresql:
password: ""

keycloakx:
dbchecker:
Expand Down

0 comments on commit 6a7eacc

Please sign in to comment.