Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
b9a04f75
Commit
b9a04f75
authored
6 years ago
by
Sebastian Mihalache
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop
parents
123b933f
6f0f23b5
No related branches found
No related tags found
1 merge request
!10
Sprint #12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-12
12 additions, 12 deletions
.gitlab-ci.yml
with
12 additions
and
12 deletions
.gitlab-ci.yml
+
12
−
12
View file @
b9a04f75
...
@@ -10,17 +10,6 @@ stages:
...
@@ -10,17 +10,6 @@ stages:
-
docker
-
docker
-
demo
-
demo
build
:
image
:
docker:stable
stage
:
build
script
:
-
docker version
-
docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA .
-
if [ -z "$DOCKERHUB_USERNAME" ] || [ -z "$DOCKERHUB_PASSWORD" ]; then echo "Not pushing" && exit 0; fi
-
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
-
echo "Ignore warning! Cannot perform an interactive login from a non TTY device"
-
docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
build-aws
:
build-aws
:
image
:
docker:stable
image
:
docker:stable
stage
:
build
stage
:
build
...
@@ -30,11 +19,22 @@ build-aws:
...
@@ -30,11 +19,22 @@ build-aws:
-
apk add --no-cache curl jq python py-pip
-
apk add --no-cache curl jq python py-pip
-
pip install awscli
-
pip install awscli
script
:
script
:
-
$(aws ecr get-login --no-include-email --region
us-east-1
)
-
eval
$(aws ecr get-login --no-include-email --region
eu-west-1 | sed 's|https://||'
)
-
docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA .
-
docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA .
-
docker tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA $REPOSITORY_URL:latest
-
docker tag $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA $REPOSITORY_URL:latest
-
docker push $REPOSITORY_URL:latest
-
docker push $REPOSITORY_URL:latest
build
:
image
:
docker:stable
stage
:
build
script
:
-
docker version
-
docker build -t $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA .
-
if [ -z "$DOCKERHUB_USERNAME" ] || [ -z "$DOCKERHUB_PASSWORD" ]; then echo "Not pushing" && exit 0; fi
-
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
-
echo "Ignore warning! Cannot perform an interactive login from a non TTY device"
-
docker push $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
lint
:
lint
:
image
:
$IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
image
:
$IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage
:
test
stage
:
test
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment