Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlasvoayages.com
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nabil el mahiri
atlasvoayages.com
Commits
28582094
Commit
28582094
authored
Mar 07, 2019
by
nabil el mahiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
npm login
parent
8c909d44
Pipeline
#467
canceled with stages
in 7 minutes 44 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
35 deletions
+36
-35
.gitlab-ci.yml
+36
-35
No files found.
.gitlab-ci.yml
View file @
28582094
...
@@ -18,43 +18,11 @@ stages:
...
@@ -18,43 +18,11 @@ stages:
-
build
-
build
-
deploy
-
deploy
# build:
# stage: build
# environment: Production
# tags:
# - atlasvoyages-prod-runner
# only:
# - master
# script:
# # - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# # # Run ssh-agent (inside the build environment)
# # - eval $(ssh-agent -s)
# # # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
# # - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d)
# # - mkdir -p ~/.ssh
# # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - chmod +x sh/run.sh
# - docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" --build-arg DEPLOY_TOKEN="$DEPLOY_TOKEN" -f docker/Dockerfile -t atlasvoyages-docker:prod .
# - sh sh/clean.sh
# deploy:
# stage: deploy
# environment: Production
# tags:
# - atlasvoyages-prod-runner
# only:
# - master
# script:
# - chmod +x sh/run.sh
# - sh sh/run.sh
# - docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod
# - sh sh/clean.sh
build
:
build
:
stage
:
build
stage
:
build
environment
:
Production
environment
:
Production
tags
:
tags
:
-
atlasvoyages-runner
-
atlasvoyages-
prod-
runner
only
:
only
:
-
master
-
master
script
:
script
:
...
@@ -66,14 +34,14 @@ build:
...
@@ -66,14 +34,14 @@ build:
# - mkdir -p ~/.ssh
# - mkdir -p ~/.ssh
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
-
chmod +x sh/run.sh
-
chmod +x sh/run.sh
-
docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY
_TEST" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}"
-f docker/Dockerfile -t atlasvoyages-docker:prod .
-
docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY
" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" --build-arg DEPLOY_TOKEN="$DEPLOY_TOKEN"
-f docker/Dockerfile -t atlasvoyages-docker:prod .
-
sh sh/clean.sh
-
sh sh/clean.sh
deploy
:
deploy
:
stage
:
deploy
stage
:
deploy
environment
:
Production
environment
:
Production
tags
:
tags
:
-
atlasvoyages-runner
-
atlasvoyages-
prod-
runner
only
:
only
:
-
master
-
master
script
:
script
:
...
@@ -81,3 +49,35 @@ deploy:
...
@@ -81,3 +49,35 @@ deploy:
-
sh sh/run.sh
-
sh sh/run.sh
-
docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod
-
docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod
-
sh sh/clean.sh
-
sh sh/clean.sh
# build:
# stage: build
# environment: Production
# tags:
# - atlasvoyages-runner
# only:
# - master
# script:
# # - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# # # Run ssh-agent (inside the build environment)
# # - eval $(ssh-agent -s)
# # # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
# # - ssh-add <(echo "$SSH_PRIVATE_KEY_64" | base64 -d)
# # - mkdir -p ~/.ssh
# # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - chmod +x sh/run.sh
# - docker build --build-arg SSH_PRIVATE_KEY="$SSH_PRIVATE_KEY_TEST" --build-arg CI_JOB_TOKEN="${CI_JOB_TOKEN}" -f docker/Dockerfile -t atlasvoyages-docker:prod .
# - sh sh/clean.sh
# deploy:
# stage: deploy
# environment: Production
# tags:
# - atlasvoyages-runner
# only:
# - master
# script:
# - chmod +x sh/run.sh
# - sh sh/run.sh
# - docker run -d -p 7778:80 --name atlasvoyages-docker-prod atlasvoyages-docker:prod
# - sh sh/clean.sh
\ No newline at end of file
Write
Preview
Markdown
is supported
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