Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nginx-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Server Tools
nginx-build
Merge requests
!2
Improve artifact naming
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve artifact naming
add/artifact-naming
into
master
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Erick Hitter
requested to merge
add/artifact-naming
into
master
6 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Viewing commit
cb3f9cbe
Prev
Next
Show latest version
2 files
+
13
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cb3f9cbe
Include build arguments in artifact name
· cb3f9cbe
Erick Hitter
authored
6 years ago
scripts/build.sh
+
12
−
2
Options
@@ -14,6 +14,14 @@ echo "$OG_DIR"
echo
""
# Common paths.
NGINX_ARTIFACT_PATH
=
"
$OG_DIR
/artifacts"
export
NGINX_ARTIFACT_PATH
NGINX_BUILT_BINARY_PATH
=
"
$NGINX_ARTIFACT_PATH
/nginx_
${
NGINX_TAG
}
_
${
OPENSSL_TAG
}
"
export
NGINX_BUILT_BINARY_PATH
mkdir
-p
"
$NGINX_ARTIFACT_PATH
"
NGINX_SRC_DIR
=
"
$OG_DIR
/src/nginx"
export
NGINX_SRC_DIR
@@ -103,6 +111,8 @@ if [[ ! -f "$NGINX_SRC_DIR/objs/nginx" ]]; then
exit
1
fi
cp
"
$NGINX_SRC_DIR
/objs/nginx"
"
$NGINX_BUILT_BINARY_PATH
"
# Verify build works
cd
"
$NGINX_
SRC_DIR
/objs
"
||
exit
1
./
nginx
-V
cd
"
$NGINX_
ARTIFACT_PATH
"
||
exit
1
./
"
$NGINX_BUILT_BINARY_PATH
"
-V
Loading