-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2888 from travis-ci/release_240828
Release 2024 08 28
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ FROM ruby:3.2.2 | |
|
||
LABEL maintainer Travis CI GmbH <[email protected]> | ||
|
||
ARG AIDA_URL | ||
|
||
RUN groupadd --gid 1000 node \ | ||
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node | ||
|
||
|
@@ -39,8 +41,14 @@ COPY . /app | |
|
||
RUN --mount=type=secret,id=GITHUB_PERSONAL_TOKEN export GITHUB_PERSONAL_TOKEN=$(cat /run/secrets/GITHUB_PERSONAL_TOKEN) && git config --global url."https://[email protected]/".insteadOf ssh://[email protected] | ||
|
||
RUN npm ci | ||
RUN ember build --environment=production | ||
RUN (\ | ||
npm ci; \ | ||
if test $AIDA_URL; then \ | ||
curl -o /app/node_modules/asktravis/dist/aida.js $AIDA_URL; \ | ||
curl -o /app/node_modules/asktravis/dist/aida.js.map $AIDA_URL.map || true; \ | ||
fi; \ | ||
ember build --environment=production; \ | ||
) | ||
|
||
RUN cp -a public/* dist/ | ||
|
||
|