Skip to content

Commit

Permalink
added a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Paulen committed Dec 18, 2024
1 parent 4406455 commit 055e21b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Deploy to Kubernetes

on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Dependencies
run: npm install

- name: Build Application
run: npm run build

- name: Set Up kubectl
uses: azure/setup-kubectl@v3
with:
version: 'latest'

- name: Create ConfigMaps
run: |
NAMESPACE="jupyterhub-dev-ns"
BASE_DIR="./dist"
create_configmap() {
local name=$1
local path=$2
kubectl create configmap $name --from-file=$path --dry-run=client -o yaml > $name.yaml
}
create_configmap "static-files" "$BASE_DIR"
create_configmap "static-files-js" "$BASE_DIR/static/custom-js"
create_configmap "static-files-css" "$BASE_DIR/static/custom-css"
create_configmap "static-files-woff" "$BASE_DIR/static/woff"
create_configmap "static-files-woff2" "$BASE_DIR/static/woff2"
create_configmap "static-files-images" "$BASE_DIR/static"
12 changes: 12 additions & 0 deletions src/Form.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
min-height: 100vh;
}

.GPU-wrapper {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: center;
align-items: center;
}

.GPU-stats {
border: none;
}

@media (max-width: 768px) {
.wrapper {
display: flex;
Expand Down

0 comments on commit 055e21b

Please sign in to comment.