Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gitlab Project Doctor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Numérique et Écologie
Gitlab Project Doctor
Commits
2d488404
Verified
Commit
2d488404
authored
1 year ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Add Docker release from binary release
parent
38e9eeaa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+16
-1
16 additions, 1 deletion
.gitlab-ci.yml
Dockerfile
+2
-26
2 additions, 26 deletions
Dockerfile
with
18 additions
and
27 deletions
.gitlab-ci.yml
+
16
−
1
View file @
2d488404
stages
:
-
build_test
-
release
-
deploy
include
:
-
remote
:
'
https://api.r2devops.io/job/r/gitlab/r2devops/hub/docker_build@latest.yaml'
check-format
:
stage
:
build_test
...
...
@@ -70,4 +74,15 @@ release-macos-x86:
LDD_CMD
:
otool -L
tags
:
-
macos_mx
retry
:
1
# First-time OpenSSL build will fail rust build
\ No newline at end of file
retry
:
1
# First-time OpenSSL build will fail rust build
docker_build
:
stage
:
deploy
variables
:
COMMIT_CREATE_LATEST
:
"
true"
IMAGE_TAG
:
"
v1.19.2-debug"
retry
:
2
dependencies
:
-
release-linux
tags
:
-
buildonly
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
26
View file @
2d488404
FROM
rust:alpine
as
cargo-build
RUN
apk update
RUN
apk add
--no-cache
openssl-dev musl-dev
WORKDIR
/home/rust/src
COPY
./Cargo.toml ./Cargo.toml
COPY
./Cargo.lock ./Cargo.lock
COPY
./src ./src
COPY
./i18n ./i18n
COPY
./i18n.toml ./i18n.toml
RUN
rustup target add x86_64-unknown-linux-musl
FROM
cargo-build
as
release-dev
RUN
cargo build
--target
x86_64-unknown-linux-musl
RUN
cargo
test
FROM
cargo-build
as
release-prod
RUN
cargo build
--target
x86_64-unknown-linux-musl
--release
FROM
alpine:latest
as
image-dev
COPY
--from=release-dev /home/rust/src/target/x86_64-unknown-linux-musl/debug/gitlab-project-doctor /usr/local/bin
RUN
gitlab-project-doctor
--help
FROM
alpine:latest
as
image-prod
COPY
--from=release-prod /home/rust/src/target/x86_64-unknown-linux-musl/release/gitlab-project-doctor /usr/local/bin
FROM
alpine:latest
COPY
./target/x86_64-unknown-linux-musl/release/gitlab-project-doctor /usr/local/bin
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