Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-docker-images
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
Container Registry
Model registry
Monitor
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
infrastructure
ci-docker-images
Compare revisions
83aa0f845afceb4873c629d93010de8611b4d33a to 7e2edf0b9a9d16d34243b07ed0c7fa4c3dd90fea
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
algorithms-library-toolkit/infrastructure/ci-docker-images
Select target project
No results found
7e2edf0b9a9d16d34243b07ed0c7fa4c3dd90fea
Select Git revision
Branches
master
Swap
Target
algorithms-library-toolkit/infrastructure/ci-docker-images
Select target project
algorithms-library-toolkit/infrastructure/ci-docker-images
1 result
83aa0f845afceb4873c629d93010de8611b4d33a
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
ci: update to alpine 3.17
· c942e90f
Tomáš Pecka
authored
1 year ago
Unverified
c942e90f
ci: replace docker with buildah
· 7e2edf0b
Tomáš Pecka
authored
1 year ago
Unverified
7e2edf0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-24
8 additions, 24 deletions
.gitlab-ci.yml
with
8 additions
and
24 deletions
.gitlab-ci.yml
View file @
7e2edf0b
image
:
gitlab.fit.cvut.cz:5000
/ict/alpine-docker-images/ci:3.1
5
image
:
$CI_REGISTRY
/ict/alpine-docker-images/ci:3.1
7
stages
:
-
deploy
.docker
:
&docker_template
cache
:
{}
# disable
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_HOST
:
tcp://docker:2375
DOCKER_TLS_CERTDIR
:
"
"
services
:
-
name
:
gitlab.fit.cvut.cz:5000/algorithms-library-toolkit/infrastructure/ci-docker-images/docker:dind
alias
:
docker
before_script
:
-
apk add --no-cache docker
-
docker info
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
dependencies
:
[]
.push-only-job
:
&push-only-job
<<
:
*docker_template
stage
:
deploy
image
:
$CI_REGISTRY/ict/images/buildah:v1
script
:
-
IMAGE="${CI_JOB_NAME#deploy:}"
-
IMAGE_NAME="${CI_REGISTRY_IMAGE}/${IMAGE}:latest"
-
cd "$IMAGE"
-
echo "Building image '${IMAGE}' as '${IMAGE_NAME}'"
-
docker
build -t "$IMAGE_NAME" .
-
docker
push
"$IMAGE_NAME"
-
buildah
build
--squash
-t "$
{
IMAGE_NAME
}
" .
-
buildah
push "$
{
IMAGE_NAME
}
"
.create-local-copy
:
©-job
<<
:
*docker_template
stage
:
deploy
image
:
$CI_REGISTRY/ict/images/buildah:v1
script
:
-
IMAGE="${CI_JOB_NAME#copy:}"
-
docker
pull "${IMAGE}"
-
docker
tag "${IMAGE}" "${CI_REGISTRY_IMAGE}/${IMAGE}"
-
docker
push "${CI_REGISTRY_IMAGE}/${IMAGE}"
-
buildah
pull "${IMAGE}"
-
buildah
tag "${IMAGE}" "${CI_REGISTRY_IMAGE}/${IMAGE}"
-
buildah
push "${CI_REGISTRY_IMAGE}/${IMAGE}"
deploy:alt-builder
:
<<
:
*push-only-job
...
...
This diff is collapsed.
Click to expand it.