Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rust CI Image
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Infrastructure Components
Rust CI Image
Commits
c193f27b
Verified
Commit
c193f27b
authored
3 months ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Create basic Debian Trixie image
parents
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+19
-0
19 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+13
-0
13 additions, 0 deletions
Dockerfile
with
32 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
19
−
0
View file @
c193f27b
build
:
image
:
docker:latest
stage
:
build
services
:
-
docker:dind
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
|
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
-
docker build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE${tag}" .
-
docker push "$CI_REGISTRY_IMAGE${tag}"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
13
−
0
View file @
c193f27b
FROM
debian:trixie
ENV
CARGO_HOME="$HOME/.cargo"
RUN
apt update
&&
\
apt
install
curl wget zip unzip rustup
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
rustup
install
stable
-y
&&
\
rustup default stable
-y
&&
\
rustup
install
nightly
&&
\
cargo
install
junitify
\ No newline at end of file
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