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
6539dcd4
Commit
6539dcd4
authored
7 years ago
by
Bogdan Cochior
Browse files
Options
Downloads
Patches
Plain Diff
ci: write dynamically dockerfile for now
parent
82fae045
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+14
-13
14 additions, 13 deletions
.gitlab-ci.yml
now/Dockerfile
+0
-1
0 additions, 1 deletion
now/Dockerfile
with
14 additions
and
14 deletions
.gitlab-ci.yml
+
14
−
13
View file @
6539dcd4
...
...
@@ -11,7 +11,7 @@ stages:
-
demo
build
:
image
:
docker:latest
image
:
$IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
stage
:
build
script
:
-
docker version
...
...
@@ -39,20 +39,20 @@ test:
-
cd ${HOME}
-
npm run test
push:latest
:
image
:
docker:latest
stage
:
docker
script
:
-
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 build -t $IMAGE_ORG/$IMAGE_NAME:latest --label COMMIT_SHA=$CI_COMMIT_SHA .
-
docker push $IMAGE_ORG/$IMAGE_NAME:latest
only
:
-
master
#
push:latest:
#
image: docker:latest
#
stage: docker
#
script:
#
- 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 build -t $IMAGE_ORG/$IMAGE_NAME:latest --label COMMIT_SHA=$CI_COMMIT_SHA .
#
- docker push $IMAGE_ORG/$IMAGE_NAME:latest
#
only:
#
- master
demo:now
:
image
:
$IMAGE_ORG/$IMAGE_NAME:
latest
image
:
$IMAGE_ORG/$IMAGE_NAME:
$CI_COMMIT_SHA
stage
:
demo
when
:
manual
variables
:
...
...
@@ -65,4 +65,5 @@ demo:now:
script
:
-
npm i -g --unsafe-perm now
-
cd ${HOME}/now
-
echo 'FROM $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA' >> Dockerfile
-
now --public --docker --token $NOW_TOKEN -e AWS_S3_ACCESS_KEY=$AWS_S3_ACCESS_KEY -e AWS_S3_SECRET_KEY=$AWS_S3_SECRET_KEY -e AWS_S3_REGION=$AWS_S3_REGION -e AWS_S3_BUCKET=$AWS_S3_BUCKET -e AWS_SES_SECRET_KEY=$AWS_SES_SECRET_KEY -e AWS_SES_ACCESS_KEY=$AWS_SES_ACCESS_KEY -e AWS_SES_REGION=$AWS_SES_REGION -e EMAIL_SENDER=$EMAIL_SENDER -e secret=$SECRET
\ No newline at end of file
This diff is collapsed.
Click to expand it.
now/Dockerfile
deleted
100644 → 0
+
0
−
1
View file @
82fae045
FROM
bogdandev/xpub-faraday:latest
\ No newline at end of file
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