File tree Expand file tree Collapse file tree 4 files changed +56
-0
lines changed
Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 1+ SHELL := /usr/bin/env bash
2+
3+ DOCKER ?= docker
4+
5+ all :
6+ $(DOCKER ) build -t emacs-ng/docs-image/docs-image .
Original file line number Diff line number Diff line change 1+ # docs-image
2+
3+ Docker image for the emacs-ng webpage
You can’t perform that action at this time.
0 commit comments