Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common CI Configuration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
hive
Common CI Configuration
Merge requests
!45
Added psql image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added psql image
kbotor/psql-image
into
develop
Overview
0
Commits
1
Pipelines
8
Changes
3
Merged
Konrad Botor
requested to merge
kbotor/psql-image
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
8
Changes
3
Expand
0
0
Merge request reports
Viewing commit
6e9e45f4
Show latest version
3 files
+
78
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
6e9e45f4
Added psql image
· 6e9e45f4
Konrad Botor
authored
1 year ago
.gitlab-ci.yml
+
50
−
0
Options
@@ -9,6 +9,7 @@ stages:
-
validation
-
pre-build
-
build
-
test
-
example-build
-
example-test
-
example-cleanup
@@ -187,6 +188,55 @@ build_emsdk_image:
-
scripts/bash/emscripten/**/*
compare_to
:
'
refs/heads/develop'
build_psql_image
:
extends
:
.build_docker_image
stage
:
build
variables
:
BUILD_TARGET
:
"
psql"
needs
:
-
build_docker_dind_image
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
# for branch main run if there were changes on the branch
exists
:
-
Dockerfile.psql
changes
:
paths
:
-
Dockerfile.psql
-
if
:
$CI_COMMIT_BRANCH !~ /^main$/
# for other branches compare to develop and run if there are diffrences
exists
:
-
Dockerfile.psql
changes
:
paths
:
-
Dockerfile.psql
compare_to
:
'
refs/heads/develop'
psql_image_test
:
stage
:
test
image
:
name
:
registry.gitlab.syncad.com/hive/common-ci-configuration/psql:14-1
entrypoint
:
[
"
"
]
services
:
-
postgres:14
variables
:
POSTGRES_DB
:
haf
POSTGRES_USER
:
haf_admin
POSTGRES_PASSWORD
:
password
POSTGRES_HOST_AUTH_METHOD
:
trust
PGHOST
:
postgres
PGPORT
:
5432
PGDATABASE
:
$POSTGRES_DB
PGUSER
:
$POSTGRES_USER
PGPASSWORD
:
$POSTGRES_PASSWORD
CI_DEBUG_SERVICES
:
"
false"
script
:
-
|
set -e
psql --command="\conninfo"
psql --list
psql --command="\set"
tags
:
-
public-runner-docker
example_docker_image_builder_job
:
extends
:
.docker_image_builder_job_template
Loading