Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pavel Kuzin
tower
Commits
e4fb1a17
Commit
e4fb1a17
authored
Jul 19, 2017
by
Aleksey Shirokih
Browse files
alpine tags fix ?
parent
c27467d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e4fb1a17
...
...
@@ -45,7 +45,7 @@ build_image_debian:
stage
:
build
before_script
:
-
export VERSION=$(cat VERSION)
-
export CONTAINER_NAME=$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
-
export CONTAINER_NAME=$
{
CI_REGISTRY_IMAGE
}
:$
{
CI_BUILD_REF_NAME
}
script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
-
docker build --build-arg="http_proxy=$PROXY" --build-arg="https_proxy=$PROXY" --build-arg=VERSION=${VERSION} -t $CONTAINER_NAME .
...
...
@@ -64,6 +64,7 @@ build_image_alpine:
-
export VERSION=$(cat VERSION)
-
export CONTAINER_NAME=${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_NAME}_alpine
script
:
set -xe
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build --build-arg="http_proxy=$PROXY" --build-arg="https_proxy=$PROXY" --build-arg=VERSION=${VERSION} -t $CONTAINER_NAME -f Dockerfile.alpine .
- docker push $CONTAINER_NAME
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment