Skip to content

Commit 457623d

Browse files
committed
Create docs image
0 parents  commit 457623d

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-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+
- master
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:6.2.4
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'

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 clojure-lsp maintainers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

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 clojure-lsp/docs-image/docs-image .

README.md

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

0 commit comments

Comments
 (0)