Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
IndexerHelper
Commits
560902d4
Commit
560902d4
authored
Aug 17, 2021
by
Sebastian Schüpbach
Browse files
use docker image build template
parent
495c25f3
Pipeline
#31433
passed with stages
in 3 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
560902d4
...
...
@@ -5,6 +5,10 @@ stages:
variables
:
DOCKER_TLS_CERTDIR
:
"
"
include
:
-
project
:
'
memoriav/memobase-2020/utilities/ci-templates'
file
:
'
docker-image/docker-image.yml'
default
:
image
:
golang:1.14
...
...
@@ -93,53 +97,3 @@ webservice:test:build:
extends
:
.test:build
variables
:
BIN_PATH
:
gitlab.switch.ch/memoriav/memobase-2020/services/histogram/cmd/webservice
.build-image
:
stage
:
publish
image
:
docker:stable
services
:
-
docker:dind
# before_script:
# - apk update && apk add curl
script
:
# - 'curl --location --output ffprobe --header "PRIVATE-TOKEN: $API_ACCESS_TOKEN" "https://gitlab.switch.ch/api/v4/projects/937/jobs/artifacts/master/raw/ffmpeg_build/bin/ffprobe?job=snapshot"'
# - 'curl --location --output convert --header "PRIVATE-TOKEN: $API_ACCESS_TOKEN" "https://gitlab.switch.ch/api/v4/projects/939/jobs/artifacts/master/raw/im_build/bin/convert?job=v6_9_11"'
# - 'curl --location --output identify --header "PRIVATE-TOKEN: $API_ACCESS_TOKEN" "https://gitlab.switch.ch/api/v4/projects/939/jobs/artifacts/master/raw/im_build/bin/identify?job=v6_9_11"'
-
docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD" "$REGISTRY"
-
docker build --pull -t "$IMAGE_TAG" -f "$DOCKERFILE" .
-
docker push "$IMAGE_TAG"
-
docker logout
indexerhelper:build-tagged-image:
extends
:
.build-image
variables
:
IMAGE_TAG
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
REGISTRY_PASSWORD
:
"
$CI_REGISTRY_PASSWORD"
REGISTRY_USER
:
"
$CI_REGISTRY_USER"
REGISTRY
:
"
$CI_REGISTRY"
DOCKERFILE
:
"
Dockerfile"
only
:
-
tags
indexerhelper:build-latest-image:
extends
:
.build-image
variables
:
IMAGE_TAG
:
"
$CI_REGISTRY_IMAGE:latest"
REGISTRY_PASSWORD
:
"
$CI_REGISTRY_PASSWORD"
REGISTRY_USER
:
"
$CI_REGISTRY_USER"
REGISTRY
:
"
$CI_REGISTRY"
DOCKERFILE
:
"
Dockerfile"
only
:
-
master
indexerhelper:build-feature-branch-image:
extends
:
.build-image
variables
:
IMAGE_TAG
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
REGISTRY_PASSWORD
:
"
$CI_REGISTRY_PASSWORD"
REGISTRY_USER
:
"
$CI_REGISTRY_USER"
REGISTRY
:
"
$CI_REGISTRY"
DOCKERFILE
:
"
Dockerfile.small"
except
:
-
master
-
tags
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment