Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
videoag
backend
Commits
b33e31ec
Commit
b33e31ec
authored
4 months ago
by
Simon Künzel
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Add package caching for CI
parent
9e7fba55
No related branches found
No related tags found
No related merge requests found
Pipeline
#7295
failed
4 months ago
Stage: build
Stage: run
Pipeline: backend
#7296
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
api/Dockerfile
+2
-0
2 additions, 0 deletions
api/Dockerfile
common_py/Dockerfile
+2
-0
2 additions, 0 deletions
common_py/Dockerfile
generate_ci_pipeline.py
+5
-0
5 additions, 0 deletions
generate_ci_pipeline.py
job_controller/Dockerfile
+2
-0
2 additions, 0 deletions
job_controller/Dockerfile
with
11 additions
and
0 deletions
api/Dockerfile
+
2
−
0
View file @
b33e31ec
ARG
PIP_CACHE_DIR
# Can be "development" or "production"
ARG
ENV_TYPE
ARG
GIT_COMMIT_SHA
...
...
This diff is collapsed.
Click to expand it.
common_py/Dockerfile
+
2
−
0
View file @
b33e31ec
ARG
PIP_CACHE_DIR
FROM
python:3.12
WORKDIR
/code
...
...
This diff is collapsed.
Click to expand it.
generate_ci_pipeline.py
+
5
−
0
View file @
b33e31ec
...
...
@@ -92,6 +92,7 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
f
"
--destination=$CI_REGISTRY_IMAGE/
{
self
.
versioned_full_name
()
}
"
,
f
"
--build-arg=GIT_COMMIT_SHA=
{
self
.
context
.
commit_sha
}
"
,
f
"
--build-arg=ENV_TYPE=
{
self
.
context
.
env_type
()
}
"
,
f
"
--build-arg=PIP_CACHE_DIR=$CI_PROJECT_DIR/.cache/pip
"
,
f
"
--cache=true
"
,
]
...
...
@@ -106,6 +107,9 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
image:
name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [
""
]
cache:
paths:
- .cache/pip
script:
-
{
self
.
_get_auth_echo
()
}
- echo
{
self
.
context
.
commit_sha
}
...
...
@@ -165,6 +169,7 @@ run-api-tests:
- name: postgres:17
alias: ci-database
variables:
POSTGRES_DB: videoagtest
POSTGRES_USER: videoagtest
POSTGRES_PASSWORD: LetMeTest...
...
...
This diff is collapsed.
Click to expand it.
job_controller/Dockerfile
+
2
−
0
View file @
b33e31ec
ARG
PIP_CACHE_DIR
# Can be "development" or "production"
ARG
ENV_TYPE
ARG
GIT_COMMIT_SHA
...
...
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