Skip to content

Commit

Permalink
chore: Add release-drafter github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 7, 2024
1 parent 66dd439 commit 728f3a1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [master]

jobs:
common:
uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master

docker:
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: release

on:
push:
branches: [master]
pull_request_target:
branches: [master]
types: [opened, reopened, synchronize]

jobs:
release:
uses: TokTok/ci-tools/.github/workflows/release-drafter.yml@master
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.4
48 changes: 21 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND="noninteractive"

# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
graphviz \
make \
pandoc \
python3 \
python3-bs4 \
python3-pip \
python3-requests \
python3-urllib3 \
python3-xdg \
ruby \
ruby-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
FROM alpine:3.20.0

# hadolint ignore=DL3018
RUN ["apk", "add", "--no-cache", \
"curl", \
"g++", \
"gcc", \
"git", \
"graphviz", \
"jekyll", \
"make", \
"pandoc", \
"py3-pip", \
"python3"]
RUN python3 -m venv /path/to/venv
# hadolint ignore=DL3013
RUN pip install --no-cache-dir LinkChecker
RUN . /path/to/venv/bin/activate \
&& pip install --no-cache-dir LinkChecker

RUN ["gem", "install", "--no-document", "jekyll:4.2.2", "guard-livereload", "mdl"]
RUN ["gem", "install", "--no-document", "guard-livereload", "mdl"]

RUN groupadd -r -g 1000 builder \
&& useradd --no-log-init -r -g builder -u 1000 builder
RUN addgroup -S builder && adduser -SDH -G builder builder

WORKDIR /home/builder/build
COPY toktok /home/builder/build/toktok/
Expand All @@ -41,7 +34,8 @@ RUN ["make", "toktok-site"]

COPY .md-style.rb /home/builder/build/
RUN ["make", "lint"]
RUN ["make", "check"]
RUN . /path/to/venv/bin/activate \
&& make check

WORKDIR /home/builder/build/toktok-site
ENTRYPOINT ["/home/builder/entrypoint.sh"]

0 comments on commit 728f3a1

Please sign in to comment.