Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
nodes
typescript
duniter
Commits
a796d56b
Unverified
Commit
a796d56b
authored
2 years ago
by
Ismaël Bouya
Browse files
Options
Downloads
Patches
Plain Diff
fix docker builds
parent
a03e7e9a
No related branches found
No related tags found
1 merge request
!1413
fix docker builds
Pipeline
#19126
passed
2 years ago
Stage: tests
Stage: package
Stage: quality
Stage: integration
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-9
5 additions, 9 deletions
.gitlab-ci.yml
with
5 additions
and
9 deletions
.gitlab-ci.yml
+
5
−
9
View file @
a796d56b
...
@@ -157,13 +157,11 @@ releases:x64:
...
@@ -157,13 +157,11 @@ releases:x64:
.docker-build-app-image
:
.docker-build-app-image
:
stage
:
package
stage
:
package
image
:
docker:
18.06
image
:
docker:
git
tags
:
tags
:
-
redshift
-
docker
services
:
-
docker:18.06-dind
before_script
:
before_script
:
-
docker info
-
git config --global --add safe.directory /builds/nodes/typescript/duniter
script
:
script
:
-
docker pull $CI_REGISTRY_IMAGE:$IMAGE_TAG ||
true
-
docker pull $CI_REGISTRY_IMAGE:$IMAGE_TAG ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:$IMAGE_TAG --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" --build-arg="INSTALL_DEX=$INSTALL_DEX" -f release/docker/Dockerfile .
-
docker build --cache-from $CI_REGISTRY_IMAGE:$IMAGE_TAG --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" --build-arg="INSTALL_DEX=$INSTALL_DEX" -f release/docker/Dockerfile .
...
@@ -201,11 +199,9 @@ package:prod:docker:
...
@@ -201,11 +199,9 @@ package:prod:docker:
stage
:
package
stage
:
package
rules
:
rules
:
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
image
:
docker:
18.06
image
:
docker:
git
tags
:
tags
:
-
redshift
-
docker
services
:
-
docker:18.06-dind
script
:
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" -f release/docker/Dockerfile .
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" -f release/docker/Dockerfile .
-
docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
-
docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
...
...
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