Skip to content

Commit 87ae893

Browse files
committed
Stuff to test the CI/CD pipeline
1 parent b9db5bd commit 87ae893

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build & Deploy Helpdesk Helper
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
17+
- name: Login to Docker Hub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
password: ${{ secrets.DOCKERHUB_TOKEN }}
22+
23+
- name: Build and Push Image
24+
uses: docker/build-push-action@v6
25+
with:
26+
push: true
27+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/helpdesk-helper:latest
28+
platforms: linux/arm64
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Install kubectl
35+
run: |
36+
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
37+
chmod +x kubectl
38+
sudo mv kubectl /usr/local/bin/
39+
40+
- name: Configure Kubeconfig
41+
run: |
42+
echo "${{ secrets.KUBECONFIG_BASE64 }}" | base64 -d > kubeconfig
43+
env:
44+
KUBECONFIG: ./kubeconfig
45+
46+
- name: Rollout restart deployment
47+
run: |
48+
kubectl --kubeconfig ./kubeconfig rollout restart deployment helpdesk-helper

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.json
2+
helpdesk-helper.yaml

server/ui/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h3>Shifts</h3>
122122
<tr>
123123
<th style="width: 200px">Start</th>
124124
<th style="width: 200px">End</th>
125-
<th>Users (IDs)</th>
125+
<th>Organizers</th>
126126
<th style="width: 140px">Actions</th>
127127
</tr>
128128
</thead>
@@ -134,7 +134,7 @@ <h3>Shifts</h3>
134134
</section>
135135

136136
<section>
137-
<h3>Unscheduled members</h3>
137+
<h3>Unscheduled organizers</h3>
138138
<div id="vol-list"></div>
139139
<div style="margin-top: 8px" class="row">
140140
<input

server/ui/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function renderUserChips(cell, ids) {
148148
// Add dropdown
149149
const select = document.createElement("select");
150150
const placeholder = document.createElement("option");
151-
placeholder.textContent = "+ Add member";
151+
placeholder.textContent = "+ Add organizer";
152152
placeholder.value = "";
153153
select.appendChild(placeholder);
154154

0 commit comments

Comments
 (0)