forked from patefacio/json_schema
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14e7bb5
commit 2d1e8ac
Showing
2 changed files
with
19 additions
and
26 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: dart | ||
dist: precise | ||
dart: | ||
- stable | ||
- 1.24.3 | ||
addons: | ||
apt: | ||
packages: | ||
|
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 |
---|---|---|
@@ -1,37 +1,30 @@ | ||
FROM drydock-prod.workiva.net/workiva/smithy-runner-generator:355624 as build | ||
FROM google/dart:1.24.3 as build | ||
|
||
ARG GIT_SSH_KEY | ||
ARG KNOWN_HOSTS_CONTENT | ||
RUN mkdir /root/.ssh/ && \ | ||
echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \ | ||
chmod 700 /root/.ssh/ && \ | ||
umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \ | ||
eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa | ||
|
||
WORKDIR /build/ | ||
ADD . /build/ | ||
|
||
# Build Environment Vars | ||
ARG BUILD_ID | ||
ARG BUILD_NUMBER | ||
ARG BUILD_URL | ||
ARG GIT_COMMIT | ||
ARG GIT_BRANCH | ||
ARG GIT_TAG | ||
ARG GIT_COMMIT_RANGE | ||
ARG GIT_HEAD_URL | ||
ARG GIT_MERGE_HEAD | ||
ARG GIT_MERGE_BRANCH | ||
ARG GIT_SSH_KEY | ||
ARG KNOWN_HOSTS_CONTENT | ||
|
||
WORKDIR /build/ | ||
ADD . /build/ | ||
|
||
RUN mkdir /root/.ssh | ||
RUN echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" | ||
RUN echo "$GIT_SSH_KEY" > "/root/.ssh/id_rsa" | ||
RUN chmod 700 /root/.ssh/ | ||
RUN chmod 600 /root/.ssh/id_rsa | ||
|
||
RUN echo "Starting the script sections" && \ | ||
eval "$(ssh-agent -s)" && \ | ||
ssh-add /root/.ssh/id_rsa && \ | ||
pub get && \ | ||
git config remote.origin.url "[email protected]:Workiva/semver-audit-dart.git" && \ | ||
git clone ssh://[email protected]/workiva/semver-audit-dart.git --branch 1.4.0 && \ | ||
git config remote.origin.url "[email protected]:Workiva/json_schema.git" && \ | ||
pub global activate --source path ./semver-audit-dart && \ | ||
pub global run semver_audit report --repo Workiva/json_schema && \ | ||
echo "Script sections completed" | ||
RUN pub get && \ | ||
git config remote.origin.url "[email protected]:Workiva/semver-audit-dart.git" && \ | ||
git clone ssh://[email protected]/workiva/semver-audit-dart.git --branch 1.4.0 && \ | ||
git config remote.origin.url "[email protected]:Workiva/json_schema.git" && \ | ||
pub global activate --source path ./semver-audit-dart && \ | ||
pub global run semver_audit report --repo Workiva/json_schema | ||
ARG BUILD_ARTIFACTS_BUILD=/build/pubspec.lock | ||
FROM scratch |