Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add release-drafter github action. #266

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1.1
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"]
Loading