-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
23 lines (16 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ruby
RUN apt-get update && apt-get upgrade -y && apt-get install -y jq && rm -rf /var/lib/apt/lists/*
COPY generate-jenkins-changelog.rb /jenkins-changelog-generator/bin/generate-jenkins-changelog
COPY lts-backports-changelog.rb /jenkins-changelog-generator/bin/lts-backports-changelog
COPY docker-runner.rb /jenkins-changelog-generator/bin/jenkins-changelog-generator
ADD https://raw.githubusercontent.com/jenkinsci/.github/master/.github/release-drafter.yml /jenkins-changelog-generator/config/release-drafter.yml
RUN chmod +x /jenkins-changelog-generator/bin/*
VOLUME /github/workspace
WORKDIR /github/workspace
# Forces creation
ENV CHANGELOG_YAML_PATH=/github/workspace/changelog.yaml
ENV CHANGELOG_MD_PATH=/github/workspace/changelog.md
ENV CONFIG_PATH=/jenkins-changelog-generator/config/release-drafter.yml
# Allow clone and other git operations in a directory not owned by the current user
RUN git config --global --add safe.directory /github/workspace
ENTRYPOINT ["/jenkins-changelog-generator/bin/jenkins-changelog-generator"]