Skip to content

Commit c46982d

Browse files
committed
Initial commit
This is a work in progress rebuild of the classic CS Unplugged. There are several steps that still need to be completed including: - Converting all pages - Update logo - Display all image slideshows - Optimise image pipeline - Implement URL redirects - Link checking
0 parents  commit c46982d

172 files changed

Lines changed: 3049 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy.yaml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Docker image
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
publish-dev-docker-image:
11+
name: Create and publish Docker image
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
with:
17+
submodules: true # Fetch Hugo themes (true OR recursive)
18+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
19+
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
22+
with:
23+
hugo-version: '0.85.0'
24+
25+
- name: Build
26+
run: hugo --minify
27+
28+
- name: Log in to the Container registry
29+
uses: docker/login-action@v1.10.0
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build and push Docker image
36+
uses: docker/build-push-action@v2.7.0
37+
with:
38+
push: true
39+
tags: ghcr.io/${{ github.repository }}:master

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resources/
2+
public/
3+
temp/

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/book"]
2+
path = themes/book
3+
url = https://github.com/alex-shpak/hugo-book

‎Dockerfile‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Nginx running as non-root user
2+
3+
FROM nginx:alpine
4+
5+
RUN adduser -u 5000 -D app \
6+
&& mkdir -p /var/run/nginx /var/tmp/nginx \
7+
&& chown -R app:app /usr/share/nginx /var/run/nginx /var/tmp/nginx
8+
9+
COPY --chown=app:app nginx/nginx.conf /etc/nginx/nginx.conf
10+
COPY --chown=app:app nginx/default.conf /etc/nginx/conf.d/
11+
COPY --chown=app:app /public /usr/share/nginx/html
12+
13+
USER app:app

‎LICENCE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016-2021 University of Canterbury Computer Science Education Research Group
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)