Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ViralHostRangeDB
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
hub
ViralHostRangeDB
Commits
c6a4564c
Commit
c6a4564c
authored
1 year ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
Use docker 24
parent
ab4309b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-9
2 additions, 9 deletions
.gitlab-ci.yml
with
2 additions
and
9 deletions
.gitlab-ci.yml
+
2
−
9
View file @
c6a4564c
image
:
docker:18
services
:
-
docker:18-dind
image
:
docker:24
variables
:
POSTGRESQL_VERSION
:
"
14.1"
...
...
@@ -20,19 +17,15 @@ build:
POSTGRES_DB
:
"
viralhostrangedb"
LC_COLLATE
:
POSIX
services
:
-
docker:18-dind
-
name
:
postgres:${POSTGRESQL_VERSION}
alias
:
db-test
script
:
-
if [ $CI_COMMIT_REF_SLUG == "master" ]; then export RUN_TEST="1"; fi
# - export
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# pull the latest build on master
-
docker pull "$CI_REGISTRY_IMAGE:latest" ||
true
# pull the latest build on this branch
-
docker pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" ||
true
# build the image while passing commit SHA and tagging the image with it
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg CI_COMMIT_REF_SLUG
--build-arg CI_COMMIT_SHA
--build-arg CI_COMMIT_SHORT_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