Skip to content

Commit 8283d89

Browse files
committed
Merge branch 'staging' of github.com:SovereignCloudStack/website into staging
2 parents 3e81d3d + cd7e766 commit 8283d89

File tree

88 files changed

+5120
-147
lines changed

Some content is hidden

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

88 files changed

+5120
-147
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
node_modules
3+
vendor

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: "Lighthouse v9 performance checks"
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: treosh/lighthouse-ci-action@v11
13+
- uses: treosh/lighthouse-ci-action@v12
1414
with:
1515
urls: https://scs.community
1616
uploadArtifacts: true # save results as an action artifacts

Containerfile.jekyll-action

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Inspired by https://github.com/helaili/jekyll-action/tree/2.4.0
2+
3+
FROM ruby:2.7-alpine
4+
5+
ENV LC_ALL=C.UTF-8
6+
ENV LANG=C.UTF-8
7+
8+
RUN apk add --no-cache --update git build-base bash vips uglify-js musl
9+
10+
# Allow for timezone setting in _config.yml
11+
RUN apk add --update tzdata
12+
13+
# Use curl to send API requests
14+
RUN apk add --update curl
15+
16+
RUN addgroup -Sg 1000 jekyll && \
17+
adduser -Su 1000 -G jekyll jekyll
18+
19+
RUN gem install bundler -v 2.4.22 && \
20+
bundle config set force_ruby_platform true
21+
22+
#COPY --chown=jekyll:jekyll ./ /srv/jekyll
23+
24+
# debug
25+
RUN bundle version
26+
27+
COPY --chmod=0755 entrypoint.sh /
28+
29+
USER jekyll
30+
WORKDIR /srv/jekyll
31+
32+
ENTRYPOINT ["/entrypoint.sh"]

Containerfile.node16

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Loads and runs npm/node from a specific version. Depends on the working
2+
# directory to be mounted at /data.
3+
4+
# As of 2024-08-27 this is the version used in the repo
5+
FROM node:16.20.2-alpine3.18
6+
7+
WORKDIR /data
8+
9+
RUN npm install
10+
11+
# Result: building this container creates/updates the node_modules folder
12+
# in the work directory.

Dockerfile.jekyll

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This file is an alternative to Containerfile.jekyll-action and uses
2+
# the jekyll/builder image directly.
3+
4+
# ruby 2.7.1 - in use by Github action, as of 2024-08-27
5+
FROM docker.io/jekyll/builder:4.2.0
6+
7+
# ruby 3.1.1
8+
#FROM docker.io/jekyll/builder:4.2.2
9+
10+
RUN apk add --update vips uglify-js musl git build-base tzdata curl bash
11+
12+
RUN addgroup -Sg 1000 jekyll && adduser -Su 1000 -G jekyll jekyll
13+
14+
#COPY --chown=jekyll:jekyll ./ /srv/jekyll
15+
16+
COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh
17+
18+
RUN gem install bundler -v 2.4.22 && \
19+
bundle config set force_ruby_platform true
20+
21+
RUN bundle version
22+
23+
USER jekyll
24+
WORKDIR /srv
25+
26+
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
27+

Gemfile.lock

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@ PATH
2323
GEM
2424
remote: https://rubygems.org/
2525
specs:
26-
activesupport (7.1.3.4)
26+
activesupport (7.2.2)
2727
base64
28+
benchmark (>= 0.3)
2829
bigdecimal
29-
concurrent-ruby (~> 1.0, >= 1.0.2)
30+
concurrent-ruby (~> 1.0, >= 1.3.1)
3031
connection_pool (>= 2.2.5)
3132
drb
3233
i18n (>= 1.6, < 2)
34+
logger (>= 1.4.2)
3335
minitest (>= 5.1)
34-
mutex_m
35-
tzinfo (~> 2.0)
36-
addressable (2.8.6)
37-
public_suffix (>= 2.0.2, < 6.0)
36+
securerandom (>= 0.3)
37+
tzinfo (~> 2.0, >= 2.0.5)
38+
addressable (2.8.7)
39+
public_suffix (>= 2.0.2, < 7.0)
3840
base64 (0.2.0)
41+
benchmark (0.3.0)
3942
bibtex-ruby (6.1.0)
4043
latex-decode (~> 0.0)
4144
racc (~> 1.7)
@@ -47,7 +50,7 @@ GEM
4750
citeproc (~> 1.0, >= 1.0.9)
4851
csl (~> 1.6)
4952
colorator (1.1.0)
50-
concurrent-ruby (1.3.1)
53+
concurrent-ruby (1.3.4)
5154
connection_pool (2.4.1)
5255
csl (1.6.0)
5356
namae (~> 1.0)
@@ -59,19 +62,23 @@ GEM
5962
eventmachine (>= 0.12.9)
6063
http_parser.rb (~> 0)
6164
eventmachine (1.2.7)
62-
execjs (2.9.1)
65+
execjs (2.10.0)
6366
extras (0.3.0)
6467
forwardable-extended (~> 2.5)
6568
fastimage (2.3.1)
69+
ffi (1.17.0)
6670
ffi (1.17.0-x86_64-linux-gnu)
6771
forwardable-extended (2.6.0)
68-
google-protobuf (4.27.0-x86_64-linux)
72+
google-protobuf (4.28.2)
73+
bigdecimal
74+
rake (>= 13)
75+
google-protobuf (4.28.2-x86_64-linux)
6976
bigdecimal
7077
rake (>= 13)
7178
http_parser.rb (0.8.0)
72-
i18n (1.14.5)
79+
i18n (1.14.6)
7380
concurrent-ruby (~> 1.0)
74-
jekyll (4.3.3)
81+
jekyll (4.3.4)
7582
addressable (~> 2.4)
7683
colorator (~> 1.0)
7784
em-websocket (~> 0.5)
@@ -119,50 +126,58 @@ GEM
119126
listen (3.9.0)
120127
rb-fsevent (~> 0.10, >= 0.10.3)
121128
rb-inotify (~> 0.9, >= 0.9.10)
129+
logger (1.6.1)
122130
mercenary (0.4.0)
123-
minitest (5.23.1)
124-
mutex_m (0.2.0)
131+
mini_portile2 (2.8.7)
132+
minitest (5.25.1)
125133
namae (1.2.0)
126134
racc (~> 1.7)
127-
nokogiri (1.16.5-x86_64-linux)
135+
nokogiri (1.16.7)
136+
mini_portile2 (~> 2.8.2)
137+
racc (~> 1.4)
138+
nokogiri (1.16.7-x86_64-linux)
128139
racc (~> 1.4)
129140
pathutil (0.16.2)
130141
forwardable-extended (~> 2.6)
131-
public_suffix (5.0.5)
132-
racc (1.7.3)
142+
public_suffix (6.0.1)
143+
racc (1.8.1)
133144
rack (3.0.9.1)
134145
rake (13.2.1)
135146
rb-fsevent (0.11.2)
136147
rb-inotify (0.11.1)
137148
ffi (~> 1.0)
138-
rexml (3.2.8)
139-
strscan (>= 3.0.9)
140-
rouge (4.2.1)
149+
rexml (3.3.9)
150+
rouge (4.3.0)
141151
rqrcode (2.2.0)
142152
chunky_png (~> 1.0)
143153
rqrcode_core (~> 1.0)
144154
rqrcode_core (1.2.0)
145-
ruby-vips (2.2.1)
155+
ruby-vips (2.2.2)
146156
ffi (~> 1.12)
157+
logger
147158
safe_yaml (1.0.5)
148-
sass-embedded (1.77.4-x86_64-linux-gnu)
149-
google-protobuf (>= 3.25, < 5.0)
159+
sass-embedded (1.78.0)
160+
google-protobuf (~> 4.27)
161+
rake (>= 13)
162+
sass-embedded (1.78.0-x86_64-linux-gnu)
163+
google-protobuf (~> 4.27)
150164
sassc (2.4.0)
151165
ffi (~> 1.9)
166+
securerandom (0.3.1)
152167
sprockets (4.2.1)
153168
concurrent-ruby (~> 1.0)
154169
rack (>= 2.2.4, < 4)
155-
strscan (3.1.0)
156170
terminal-table (3.0.2)
157171
unicode-display_width (>= 1.1.1, < 3)
158172
tzinfo (2.0.6)
159173
concurrent-ruby (~> 1.0)
160-
uglifier (4.2.0)
174+
uglifier (4.2.1)
161175
execjs (>= 0.3.0, < 3)
162-
unicode-display_width (2.5.0)
163-
webrick (1.8.1)
176+
unicode-display_width (2.6.0)
177+
webrick (1.8.2)
164178

165179
PLATFORMS
180+
ruby
166181
x86_64-linux
167182

168183
DEPENDENCIES

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The static [SCS website](https://scs.community) is generated by [Jekyll](https://jekyllrb.com/). The theme is originally based on the template [business-frontpage](https://github.com/sharu725/business-frontpage) by [sharu725](https://github.com/sharu725). We're heavily making use of [Bootstrap 5](https://getbootstrap.com/docs/5.0) to layout the page content.
55

6-
The website is automatically build every 15 minutes or on every push to `main` and subsequently pulled onto our webspace.
6+
The website is automatically built every 15 minutes or on every push to `main` and subsequently pulled onto our webspace.
77

88
## Locations
99

@@ -20,20 +20,18 @@ Published sites:
2020
![Step 2](_assets/doc/step2.png)
2121
2. Make your changes in the branch
2222
![Step 3](_assets/doc/step3.png)
23-
3. Create a pull request to get the changes in the `main` branch
23+
3. Create a pull request to get the changes into the `main` branch
2424
* Open https://github.com/SovereignCloudStack/website
2525
* Select `Contribute` -> `Open pull request`
2626
* Verify that `base: main` and `compare <your branch>` is selected in the top of the pull request
27-
* Add a optional description
27+
* Add an optional description
2828
* `Create pull request`
2929
* Assign one ore more persons which can review the changes and remind the person to review the change
3030
4. The [reviewer](https://github.com/pulls/assigned) inspects [your](https://github.com/pulls) changes and gives feedback
31-
* If there is something to todo, you can restart at step 2
32-
* If everything is fine the reviewer approves the merge request
31+
* If there is something to do, you can restart at step 2
32+
* If everything is fine, the reviewer approves the merge request
3333
* Your changes are merged to the `main` branch and rolled out after 15 minutes
3434

35-
36-
3735
## The editorial workflow
3836

3937
The website data is deployed by the following process:
@@ -50,7 +48,7 @@ The description is a little more detailed than it needs to be, as it aims also t
5048
cd website
5149
git checkout main
5250
git pull
53-
git checkout -b feat/<name of your branch> # not not use spaces
51+
git checkout -b feat/<name of your branch> # do not use spaces
5452
```
5553
2. Make your changes with the tool of your choice
5654
3. Commit and push with signoffs
@@ -60,16 +58,16 @@ The description is a little more detailed than it needs to be, as it aims also t
6058
git add <file> ... <file>
6159
git status
6260
git commit -s -a
63-
gut push
61+
git push -u origin feat/<name of your branch>
6462
```
65-
4. Optional: Testing complexer changes
63+
4. Optional: Testing more complex changes
6664
* Set the `staging` branch to the same state like the main branch
6765
```
6866
git checkout staging
6967
# check the current difference
7068
git diff main
7169
72-
# This abdondons everything on the staging branch
70+
# This abandons everything on the staging branch
7371
git reset --hard origin/main
7472
# add changes of other branches
7573
git merge feat/<name of your branch>
@@ -79,26 +77,26 @@ The description is a little more detailed than it needs to be, as it aims also t
7977
git push --force
8078
```
8179
* Test the result: https://staging.scs.community/ (that takes ~15minutes)
82-
* Start at Step 2 if your are not satisfied
80+
* Start again at Step 2 if you are not satisfied
8381
5. Create a pull request to get the changes in the `main` branch
8482
* Open https://github.com/SovereignCloudStack/website
8583
* Select `Contribute` -> `Open pull request`
8684
* Verify that `base: main` and `compare <your branch>` is selected in the top of the pull request
87-
* Add a optional description
85+
* Add an optional description
8886
* `Create pull request`
8987
* Assign one ore more persons which can review the changes and remind the person to review the change
9088
6. The [reviewer](https://github.com/pulls/assigned) inspects [your](https://github.com/pulls) changes and gives feedback
91-
* If there is something to todo, you can restart at step 2
92-
* If everything is fine the reviewer approves the merge request
89+
* If there is something to do, you can restart at step 2
90+
* If everything is fine, the reviewer approves the merge request
9391
* Your changes are merged to the `main` branch and rolled out after 15 minutes
9492
9593
## Frequently asked questions
9694
9795
### How can I publish a community blog posting?
98-
Create a markup document located at `_i18n/en/blog` and/or respectively `_i18n/de/blog` to add a new blog post. Be aware that the file shall be named `YEAR-MONTH-DAY-title.MARKUP` according to the Jekyll conventions (see [Jekyll Docs](https://jekyllrb.com/docs/posts/)).
96+
Create a markup document located at `_i18n/en/blog` and/or respectively `_i18n/de/blog` to add a new blog post. Be aware that the file shall be named `YEAR-MONTH-DAY-title.MARKUP` according to the Jekyll conventions (see [Jekyll Docs](https://jekyllrb.com/docs/posts/)).
9997
10098
### How can I create a new page?
101-
Due to the internalization plugin, you have to create multiple files. First of all, add a new markup document under `_pages`, set the desired layout, e.g. `default` and add the line
99+
Due to the internationalization plugin, you have to create multiple files. First of all, add a new markup document under `_pages`, set the desired layout, e.g. `default` and add the line
102100
```
103101
{% tf pagetitle.MARKUP %}
104102
```
@@ -115,16 +113,18 @@ As we're using Bootstrap, please add your custom styling definitions to `assets/
115113
116114
## Testing changes on `staging` branch
117115
118-
We're using a dedicated workflow to build a staging preview of our website that subsequently is published with GitHub Pages. To make use of this feature, simply push to `staging`. Please try to keep `staging` in sync with `main`, e.g. by deleting and recreating after testing your recent changes. The staging area can be reached via <https://sovereigncloudstack.github.io/website/>.
116+
We're using a dedicated workflow to build a staging preview of our website that subsequently is published with GitHub Pages. To make use of this feature, simply push to the `staging` branch. Please try to keep `staging` in sync with `main`, e.g. by deleting and recreating after testing your recent changes. The staging area can be reached via <https://sovereigncloudstack.github.io/website/>.
119117
120118
## Testing changes locally
121119
120+
As of August 2024, the local build is aimed at a podman-based container installation.
121+
122122
* Clone Repo
123123
```
124124
git clone [email protected]:SovereignCloudStack/website.git
125125
```
126126
* Start testserver
127127
```
128-
./run.sh
128+
bash run-podman.sh
129129
```
130130
142 KB
Loading

_assets/images/avatar-secunet.png

15.1 KB
Loading
4.4 KB
Loading

0 commit comments

Comments
 (0)