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
Commits
1969c325
Commit
1969c325
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Plain Diff
Merge branch 'add/stretch' into 'master'
Stretch build See merge request
!3
parents
9ad55a6b
e4578506
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
Stretch build
Pipeline
#578
passed
6 years ago
Stage: test_pre_build
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-4
28 additions, 4 deletions
.gitlab-ci.yml
scripts/build.sh
+1
-2
1 addition, 2 deletions
scripts/build.sh
with
29 additions
and
6 deletions
.gitlab-ci.yml
+
28
−
4
View file @
1969c325
image
:
containers.ethitter.com:443/docker/images/debian:jessie
stages
:
stages
:
-
test_pre_build
-
test_pre_build
-
build
-
build
-
test
-
test
-
deploy
-
deploy
# General tests
test_build_script
:
test_build_script
:
stage
:
test_pre_build
stage
:
test_pre_build
image
:
koalaman/shellcheck-alpine:latest
image
:
koalaman/shellcheck-alpine:latest
script
:
script
:
-
shellcheck ./scripts/build.sh
-
shellcheck ./scripts/build.sh
test_build_nginx
:
# Stretch
test_build_nginx_stretch
:
stage
:
build
image
:
containers.ethitter.com:443/docker/images/debian:stretch
script
:
-
chmod +x ./scripts/build.sh
-
./scripts/build.sh
except
:
-
master
build_nginx_stretch
:
stage
:
build
image
:
containers.ethitter.com:443/docker/images/debian:stretch
script
:
-
chmod +x ./scripts/build.sh
-
./scripts/build.sh
artifacts
:
paths
:
-
artifacts
only
:
-
master
# Jessie
test_build_nginx_jessie
:
stage
:
build
stage
:
build
image
:
containers.ethitter.com:443/docker/images/debian:jessie
script
:
script
:
-
chmod +x ./scripts/build.sh
-
chmod +x ./scripts/build.sh
-
./scripts/build.sh
-
./scripts/build.sh
except
:
except
:
-
master
-
master
build_nginx
:
build_nginx
_jessie
:
stage
:
build
stage
:
build
image
:
containers.ethitter.com:443/docker/images/debian:jessie
script
:
script
:
-
chmod +x ./scripts/build.sh
-
chmod +x ./scripts/build.sh
-
./scripts/build.sh
-
./scripts/build.sh
...
...
This diff is collapsed.
Click to expand it.
scripts/build.sh
+
1
−
2
View file @
1969c325
...
@@ -17,7 +17,7 @@ echo ""
...
@@ -17,7 +17,7 @@ echo ""
NGINX_ARTIFACT_PATH
=
"
$OG_DIR
/artifacts"
NGINX_ARTIFACT_PATH
=
"
$OG_DIR
/artifacts"
export
NGINX_ARTIFACT_PATH
export
NGINX_ARTIFACT_PATH
NGINX_BUILT_BINARY_PATH
=
"
$NGINX_ARTIFACT_PATH
/nginx_
${
NGINX_TAG
}
_
${
OPENSSL_TAG
}
"
NGINX_BUILT_BINARY_PATH
=
"
$
{
NGINX_ARTIFACT_PATH
}
/nginx_
$
(
lsb_release
-sc
)
_
$
{
NGINX_TAG
}
_
${
OPENSSL_TAG
}
"
export
NGINX_BUILT_BINARY_PATH
export
NGINX_BUILT_BINARY_PATH
mkdir
-p
"
$NGINX_ARTIFACT_PATH
"
mkdir
-p
"
$NGINX_ARTIFACT_PATH
"
...
@@ -104,7 +104,6 @@ cd "$NGINX_SRC_DIR" || exit 1
...
@@ -104,7 +104,6 @@ cd "$NGINX_SRC_DIR" || exit 1
# Build nginx
# Build nginx
echo
""
echo
""
echo
"BUILDING NGINX"
echo
"BUILDING NGINX"
echo
"Using
$(
nproc
)
jobs"
make
make
if
[[
!
-f
"
$NGINX_SRC_DIR
/objs/nginx"
]]
;
then
if
[[
!
-f
"
$NGINX_SRC_DIR
/objs/nginx"
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment