Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Nyx
LarvaTagger.jl
Commits
7d09ca55
Commit
7d09ca55
authored
1 year ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
--no-cache has become necessary with docker build
parent
a8d2ad37
No related branches found
No related tags found
1 merge request
!10
Set of commits to be tagged v0.16.1
Pipeline
#106520
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/larvatagger.sh
+8
-1
8 additions, 1 deletion
scripts/larvatagger.sh
with
8 additions
and
1 deletion
scripts/larvatagger.sh
+
8
−
1
View file @
7d09ca55
...
...
@@ -22,6 +22,10 @@ for _ in $(seq $#); do
shift
;;
*
)
if
[
"
$1
"
=
"--no-cache"
]
;
then
# --no-cache is default for build since 0.16.1
no_cache
=
1
fi
# note: if DOCKER_ARGS is externally defined, it must end with an explicit space
DOCKER_ARGS
=
"
${
DOCKER_ARGS
}
$1
"
shift
...
...
@@ -78,12 +82,15 @@ DOCKER_ARGS="--build-arg BACKEND=${1:15} $DOCKER_ARGS"; shift
TARGET
=
backend
elif
[
"
$1
"
=
"--no-cache"
]
;
then
echo
"Deprecation warning: argument
$1
should now be passed before build"
DOCKER_ARGS
=
"--no-cache
$DOCKER_ARGS
"
;
shift
shift
else
echo
"argument not supported:
$1
"
;
shift
exit
1
fi
done
if
[
-z
"
$no_cache
"
]
;
then
DOCKER_ARGS
=
"--no-cache
$DOCKER_ARGS
"
fi
DOCKER_ARGS
=
"--target
$TARGET
$DOCKER_ARGS
"
if
[
"
$BUILD
"
==
"--dev"
]
;
then
if
!
[[
"
$LARVATAGGER_IMAGE
"
==
*
:
*
]]
;
then
LARVATAGGER_IMAGE
=
"
${
LARVATAGGER_IMAGE
}
:dev"
;
fi
...
...
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