Commit 668e6031 authored by Lars Thorup's avatar Lars Thorup

build 11ty && deploy to gitlab pages

parent 95127ebd
Pipeline #43029239 passed with stages
in 1 minute and 1 second
module.exports = function (eleventyConfig) {
return {
dir: {
input: 'src',
output: 'public'
},
passthroughFileCopy: true
};
};
.idea
node_modules
public
stages:
- build
- live
pages:
image: node:latest
stage: build
environment:
name: test
url: https://fullstackagile.gitlab.io/
before_script:
- npm install
script:
- npm run build
artifacts:
paths:
- public
only:
- master
aws:
image: python:latest
stage: live
environment:
name: live
url: https://fullstackagile.eu/
when: manual
dependencies:
- pages
before_script:
- pip install awscli
script:
- aws s3 cp public s3://fullstackagile-live/ --recursive
# fullstackagile.gitlab.io
# fullstackagile.eu website
This diff is collapsed.
{
"name": "fullstackagile.gitlab.io",
"version": "1.0.0",
"scripts": {
"build": "eleventy",
"serve": "eleventy --serve"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/fullstackagile/fullstackagile.gitlab.io.git"
},
"license": "MIT",
"dependencies": {
"@11ty/eleventy": "^0.7.0"
}
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{title}}</title>
<link rel="stylesheet" type="text/css" href="/style/style.css">
</head>
<body>
{{ content | safe }}
<footer>
<a href="https://gitlab.com/fullstackagile/fullstackagile.gitlab.io/blob/master/{{ page.inputPath }}">Edit on GitLab</a>
</footer>
</body>
</html>
---
layout: html-en
---
<h1>{{title}}</h1>
<h2>Menu</h2>
<ul>
<li><a href="/">Home</a></li>
</ul>
{{ content | safe }}
---
layout: page-en
permalink: "/"
title: fullstackagile
---
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment