WIP Enable docker builds for the site #1

Merged
decentral1se merged 1 commits from docker-builds into master 2020-03-30 15:18:16 +00:00
7 changed files with 37 additions and 45 deletions

View File

@ -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

View File

@ -3,12 +3,17 @@
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].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html
[keep a changelog]: http://keepachangelog.com/en/1.0.0/
[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
## Added
- [#18]: Add shared account email.
[#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
## Added
- [#17]: Added automated Gitlab CI production builds.
[#17]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/merge_requests/17
## [1.0.0] - 2017-10-04
- Initial Release

View File

@ -1,6 +1,6 @@
# 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

13
Dockerfile Normal file
View 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"]

View File

@ -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
> https://autonomic.zone
A [Jekyll] based site for the Autonomic Cooperative. The site is based on the [spectral-jekyll-theme] template.
master is served up to [autonomic.zone] and [autonomic-cooperative.gitlab.io].
[Jekyll]: https://jekyllrb.com/
[jekyll]: https://jekyllrb.com/
[spectral-jekyll-theme]: https://github.com/andrewbanchich/spectral-jekyll-theme
[autonomic.zone]: https://autonomic.zone/
[autonomic-cooperative.gitlab.io]: http://autonomic-cooperative.gitlab.io/
# Make a change
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
# Deploy
# 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

View File

@ -1,3 +1,4 @@
---
title: Autonomic Co-operative
email: helo@autonomic.zone
description: Sustainability, Transparency, Privacy

View File

@ -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.add_development_dependency "jekyll", ">= 4"
spec.add_development_dependency "bundler", ">= 1.12"
spec.add_development_dependency "bundler", ">= 2.1.4"
end