Skip to content

Add text box to display top N users (#56) #51

Add text box to display top N users (#56)

Add text box to display top N users (#56) #51

name: Publish helm chart
# Trigger the workflow on pushed tags or commits to main branch.
on:
workflow_dispatch:
push:
paths-ignore:
- docs/**
- '**.md'
- .github/workflows/*
- '!.github/workflows/publish-helm-chart.yaml'
branches:
- main
tags:
- '**'
jobs:
# Packages the Helm chart, and pushes it to 2i2c-org/jupyterhub-cost-monitoring@gh-pages.
#
publish:
runs-on: ubuntu-22.04
# Explicitly request permissions to push to this git repository's gh-pages
# branch via the the GITHUB_TOKEN we can have access to.
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
# chartpress needs git history
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Configure a git user
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
- name: Install dependencies
run: |
pip install -r dev-requirements.txt
pip list
helm version
- name: Run chartpress
run: chartpress --push --publish-chart
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}