Skip to content

Commit

Permalink
ci: Automate UI release using an NPM automation token. Add feature-se…
Browse files Browse the repository at this point in the history
…rver helm chart to release (feast-dev#3015)

* ci: Update feast-feature-server helm chart to be automatically released in each Feast version

Signed-off-by: Danny Chiao <danny@tecton.ai>

* update files to bump

Signed-off-by: Danny Chiao <danny@tecton.ai>

* update ui automation

Signed-off-by: Danny Chiao <danny@tecton.ai>

* update ui automation

Signed-off-by: Danny Chiao <danny@tecton.ai>
  • Loading branch information
adchia authored Aug 4, 2022
1 parent 546ffae commit 95be28c
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 27 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:

publish-python-sdk:
runs-on: ubuntu-latest
needs: [build_wheels]
needs: [build_wheels, publish-web-ui-npm]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -196,4 +196,5 @@ jobs:
working-directory: ./ui
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# This publish is working using an NPM automation token to bypass 2FA
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion infra/charts/feast-feature-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: feast-feature-server
description: Feast Feature Server in Go or Python
type: application
version: 0.22.0
version: 0.23.0
keywords:
- machine learning
- big data
Expand Down
46 changes: 23 additions & 23 deletions infra/charts/feast-feature-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# feast-feature-server

![Version: 0.22.0](https://img.shields.io/badge/Version-0.22.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.23.0](https://img.shields.io/badge/Version-0.23.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Feast Feature Server in Go or Python

Expand All @@ -12,28 +12,28 @@ Feast Feature Server in Go or Python

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `""` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| livenessProbe.initialDelaySeconds | int | `30` | |
| livenessProbe.periodSeconds | int | `30` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| readinessProbe.initialDelaySeconds | int | `20` | |
| readinessProbe.periodSeconds | int | `10` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| tolerations | list | `[]` | |
| Key | Type | Default | Description |
| ---------------------------------- | ------ | ---------------- | ----------- |
| affinity | object | `{}` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `""` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| livenessProbe.initialDelaySeconds | int | `30` | |
| livenessProbe.periodSeconds | int | `30` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| readinessProbe.initialDelaySeconds | int | `20` | |
| readinessProbe.periodSeconds | int | `10` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Expand Down
2 changes: 2 additions & 0 deletions infra/scripts/helm/push-helm-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ helm repo add feast-helm-chart-repo $bucket
cd infra/charts
helm package feast
helm package feast-python-server
helm package feast-feature-server

helm gcs push --public feast-${1}.tgz feast-helm-chart-repo --force
helm gcs push --public feast-python-server-${1}.tgz feast-helm-chart-repo --force
helm gcs push --public feast-feature-server-${1}.tgz feast-helm-chart-repo --force
rm -f ./*.tgz
2 changes: 1 addition & 1 deletion infra/scripts/helm/validate-helm-chart-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

# Amount of file locations that need to be bumped in unison when versions increment
UNIQUE_VERSIONS_COUNT=18
UNIQUE_VERSIONS_COUNT=20

if [ $# -ne 1 ]; then
echo "Please provide a single semver version (without a \"v\" prefix) to test the repository against, e.g 0.99.0"
Expand Down
3 changes: 3 additions & 0 deletions infra/scripts/release/files_to_bump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ infra/charts/feast/charts/feature-server/values.yaml 8
infra/charts/feast/README.md 11 58 59
infra/charts/feast-python-server/Chart.yaml 5
infra/charts/feast-python-server/README.md 3
infra/charts/feast-feature-server/Chart.yaml 5
infra/charts/feast-feature-server/README.md 3
java/pom.xml 41
ui/package.json 3
1 change: 1 addition & 0 deletions ui/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 comments on commit 95be28c

Please sign in to comment.