WIP Enable docker builds for the site #1
@ -1,19 +0,0 @@
|
|||||||
stages:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
GIT_DEPTH: 1
|
|
||||||
|
|
||||||
|
|
||||||
pages:
|
|
||||||
image: jekyll/jekyll:4
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- jekyll build -d public
|
|
||||||
- apk add gzip --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
|
|
||||||
- gzip -v -k -6 $(find public -name '*.js' -o -name '*.html' -o -name '*.css')
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
only:
|
|
||||||
- master
|
|
11
CHANGELOG.md
11
CHANGELOG.md
@ -3,12 +3,17 @@
|
|||||||
All notable changes to this project will be documented in this file. The format
|
All notable changes to this project will be documented in this file. The format
|
||||||
is based on [Keep a Changelog] and this project adheres to [Semantic Versioning].
|
is based on [Keep a Changelog] and this project adheres to [Semantic Versioning].
|
||||||
|
|
||||||
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
|
[keep a changelog]: http://keepachangelog.com/en/1.0.0/
|
||||||
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
|
[semantic versioning]: http://semver.org/spec/v2.0.0.html
|
||||||
|
|
||||||
|
## [2.0.0] - 2020-03-30
|
||||||
|
|
||||||
|
- Moved website deployment to [git.autonomic.zone](https://git.autonomic.zone).
|
||||||
|
|
||||||
## [1.0.2] - 2017-11-05
|
## [1.0.2] - 2017-11-05
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
- [#18]: Add shared account email.
|
- [#18]: Add shared account email.
|
||||||
|
|
||||||
[#18]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/merge_requests/18
|
[#18]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/merge_requests/18
|
||||||
@ -16,9 +21,11 @@ is based on [Keep a Changelog] and this project adheres to [Semantic Versioning]
|
|||||||
## [1.0.1] - 2017-10-14
|
## [1.0.1] - 2017-10-14
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
||||||
- [#17]: Added automated Gitlab CI production builds.
|
- [#17]: Added automated Gitlab CI production builds.
|
||||||
|
|
||||||
[#17]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/merge_requests/17
|
[#17]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/merge_requests/17
|
||||||
|
|
||||||
## [1.0.0] - 2017-10-04
|
## [1.0.0] - 2017-10-04
|
||||||
|
|
||||||
- Initial Release
|
- Initial Release
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
### Not that these instructions may be out of date. If you find any quirks that aren't described in this file, please make patches.
|
> Not that these instructions may be out of date. If you find any quirks that aren't described in this file, please make patches.
|
||||||
|
|
||||||
# What Is Jekyll
|
# What Is Jekyll
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ $ rvm gemset use autonomic
|
|||||||
|
|
||||||
Then you can install your Ruby dependencies with:
|
Then you can install your Ruby dependencies with:
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
$ gem install jekyll bundler
|
$ gem install jekyll bundler
|
||||||
$ bundle install
|
$ bundle install
|
||||||
```
|
```
|
||||||
@ -45,7 +45,7 @@ $ bundle install
|
|||||||
|
|
||||||
And serve the website locally with:
|
And serve the website locally with:
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
$ make devserver
|
$ make devserver
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ Edit content in the `.md` files under `src` and `src/_posts`.
|
|||||||
|
|
||||||
When you're hacking later on (or in a new shell), you'll need to run:
|
When you're hacking later on (or in a new shell), you'll need to run:
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
$ rvm use 2.6.5
|
$ rvm use 2.6.5
|
||||||
$ rvm gemset use autonomic
|
$ rvm gemset use autonomic
|
||||||
```
|
```
|
||||||
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM decentral1se/jekyll:4
|
||||||
|
|
||||||
|
EXPOSE 4000
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY . ${WORKDIR}
|
||||||
|
|
||||||
|
RUN bundle config --global frozen 1
|
||||||
|
|
||||||
|
RUN bundle install
|
||||||
|
|
||||||
|
CMD ["jekyll", "serve", "--trace"]
|
26
README.md
26
README.md
@ -1,29 +1,19 @@
|
|||||||
[![pipeline status](https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/badges/master/pipeline.svg)](https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/commits/master)
|
|
||||||
|
|
||||||
# autonomic.zone
|
# autonomic.zone
|
||||||
|
|
||||||
|
> https://autonomic.zone
|
||||||
|
|
||||||
A [Jekyll] based site for the Autonomic Cooperative. The site is based on the [spectral-jekyll-theme] template.
|
A [Jekyll] based site for the Autonomic Cooperative. The site is based on the [spectral-jekyll-theme] template.
|
||||||
|
[jekyll]: https://jekyllrb.com/
|
||||||
master is served up to [autonomic.zone] and [autonomic-cooperative.gitlab.io].
|
|
||||||
|
|
||||||
[Jekyll]: https://jekyllrb.com/
|
|
||||||
[spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme
|
[spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme
|
||||||
[autonomic.zone]: https://autonomic.zone/
|
[autonomic.zone]: https://autonomic.zone/
|
||||||
[autonomic-cooperative.gitlab.io]: http://autonomic-cooperative.gitlab.io/
|
[autonomic-cooperative.gitlab.io]: http://autonomic-cooperative.gitlab.io/
|
||||||
|
|
||||||
# Make a change
|
# Deploy
|
||||||
|
|
||||||
Work on features in branches. If you commit to master, open a merge request from your branch unless it is a tiny change. Our [pages] CI stage will push any changes on master branch to [autonomic.zone].
|
|
||||||
|
|
||||||
[deploy]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/d16aec42bd2ddd7449f55d9f06b03499cc660b22/.gitlab-ci.yml#L17
|
|
||||||
|
|
||||||
Watch the [CI/CD pipeline] to see that it builds successfully.
|
|
||||||
|
|
||||||
[CI/CD pipeline]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/pipelines
|
|
||||||
|
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
|
|
||||||
Please see [CONTRIBUTING.md] for the juicy details. It may need to be updated, so please submit patches if you discover some quirk!
|
Please see [CONTRIBUTING.md] for the juicy details.
|
||||||
|
|
||||||
[CONTRIBUTING.md]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/master/CONTRIBUTING.md
|
It may need to be updated, so please submit patches if you discover some quirk!
|
||||||
|
|
||||||
|
[contributing.md]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/master/CONTRIBUTING.md
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
title: Autonomic Co-operative
|
title: Autonomic Co-operative
|
||||||
email: helo@autonomic.zone
|
email: helo@autonomic.zone
|
||||||
description: Sustainability, Transparency, Privacy
|
description: Sustainability, Transparency, Privacy
|
||||||
@ -6,7 +7,7 @@ url: ""
|
|||||||
source: src
|
source: src
|
||||||
destination: dist
|
destination: dist
|
||||||
sass:
|
sass:
|
||||||
sass_dir: ./assets/styles
|
sass_dir: ./assets/styles
|
||||||
featured-image-source:
|
featured-image-source:
|
||||||
500px_url:
|
500px_url:
|
||||||
github_url:
|
github_url:
|
||||||
|
@ -11,5 +11,5 @@ Gem::Specification.new do |spec|
|
|||||||
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|_sass|LICENSE|README)}i) }
|
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts|_includes|_sass|LICENSE|README)}i) }
|
||||||
|
|
||||||
spec.add_development_dependency "jekyll", ">= 4"
|
spec.add_development_dependency "jekyll", ">= 4"
|
||||||
spec.add_development_dependency "bundler", ">= 1.12"
|
spec.add_development_dependency "bundler", ">= 2.1.4"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user