-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable to expand env vars in
extra_build_args
(#130)
- Loading branch information
Showing
4 changed files
with
43 additions
and
3 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 |
---|---|---|
|
@@ -42,4 +42,4 @@ workflows: | |
requires: [orb-tools/publish] | ||
filters: | ||
tags: | ||
only: /.*/ | ||
only: /.*/ |
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# vim:set ft=dockerfile: | ||
# | ||
# The Ubuntu-based CircleCI Docker Image. Only use Ubuntu Long-Term Support | ||
# (LTS) releases. | ||
|
||
FROM ubuntu:18.04 | ||
|
||
LABEL maintainer="CircleCI <[email protected]>" | ||
|
||
ARG COMMIT_HASH | ||
|
||
# Change default shell from Dash to Bash | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
RUN if [[ "${COMMIT_HASH}" =~ ^[0-9a-f]{5,40}$ ]]; then \ | ||
echo "Success: COMMIT_HASH is valid commit hash"; \ | ||
else \ | ||
echo "Error: COMMIT_HASH is invalid commit hash"; \ | ||
exit 1; \ | ||
fi | ||
|
||
WORKDIR /root/project |