Skip to content

Commit 8dc4683

Browse files
committed
Add mkdocs-material image
1 parent 8addc0d commit 8dc4683

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Tag new version and build docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
tag:
10+
name: Tag new version
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Bump version and push tag
15+
id: tag
16+
uses: anothrNick/github-tag-action@master
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
DEFAULT_BUMP: patch
20+
WITH_V: false
21+
22+
build-docker:
23+
name: Build and publish docker image
24+
needs: tag
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Get latest tag
29+
id: latest-tag
30+
uses: WyriHaximus/[email protected]
31+
env:
32+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
33+
- name: Buid and publish docker image
34+
env:
35+
IMAGE_TAG: ${{ steps.latest-tag.outputs.tag }}
36+
run: |
37+
docker login docker.pkg.github.com --username $GITHUB_ACTOR --password ${{ secrets.GITHUB_TOKEN }}
38+
docker build --tag docker.pkg.github.com/$GITHUB_REPOSITORY/docs-image:$IMAGE_TAG /home/runner/work/docs-image/docs-image
39+
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/docs-image:$IMAGE_TAG
40+
docker build --tag docker.pkg.github.com/$GITHUB_REPOSITORY/docs-image:latest /home/runner/work/docs-image/docs-image
41+
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/docs-image:latest

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM squidfunk/mkdocs-material:7.0.5
2+
RUN pip install --no-cache-dir \
3+
'mkdocs-awesome-pages-plugin>=2.2.1' \
4+
'mkdocs-git-revision-date-localized-plugin>=0.4' \
5+
'mkdocs-minify-plugin>=0.3' \
6+
'mkdocs-redirects>=1.0'

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SHELL := /usr/bin/env bash
2+
3+
DOCKER ?= docker
4+
5+
all:
6+
$(DOCKER) build -t emacs-ng/docs-image/docs-image .

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# docs-image
2+
3+
Docker image for the emacs-ng webpage

0 commit comments

Comments
 (0)