Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88e73ba

Browse filesBrowse files
committed
feat: build latest images for minor commit tags (#197)
1 parent 0eaf5ba commit 88e73ba
Copy full SHA for 88e73ba

File tree

Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed

‎.gitlab-ci.yml

Copy file name to clipboardExpand all lines: .gitlab-ci.yml
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ build-image-latest-server:
150150
REGISTRY: "${DH_CI_REGISTRY}"
151151
DOCKER_FILE: "Dockerfile.dblab-server"
152152
DOCKER_NAME: "postgresai/dblab-server"
153-
TAGS: "${DOCKER_NAME}:latest,${DOCKER_NAME}:${CI_COMMIT_TAG}"
153+
before_script:
154+
- export LATEST_TAG=$(echo ${CI_COMMIT_TAG%.*}-latest)
155+
- export TAGS="${DOCKER_NAME}:${LATEST_TAG},${DOCKER_NAME}:${CI_COMMIT_TAG}"
154156

155157
build-image-latest-client:
156158
<<: *build_image_definition
@@ -161,7 +163,9 @@ build-image-latest-client:
161163
REGISTRY: "${DH_CI_REGISTRY}"
162164
DOCKER_FILE: "Dockerfile.dblab"
163165
DOCKER_NAME: "postgresai/dblab"
164-
TAGS: "${DOCKER_NAME}:latest,${DOCKER_NAME}:${CI_COMMIT_TAG}"
166+
before_script:
167+
- export LATEST_TAG=$(echo ${CI_COMMIT_TAG%.*}-latest)
168+
- export TAGS="${DOCKER_NAME}:${LATEST_TAG},${DOCKER_NAME}:${CI_COMMIT_TAG}"
165169

166170
build-image-rc-server:
167171
<<: *build_image_definition
@@ -191,4 +195,6 @@ build-image-swagger-latest:
191195
variables:
192196
DOCKER_FILE: "Dockerfile.swagger-ui"
193197
DOCKER_NAME: "registry.gitlab.com/postgres-ai/database-lab/dblab-swagger-ui"
194-
TAGS: "${DOCKER_NAME}:latest"
198+
before_script:
199+
- export LATEST_TAG=$(echo ${CI_COMMIT_TAG%.*}-latest)
200+
- export TAGS="${DOCKER_NAME}:${LATEST_TAG}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.