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
cf834b2a
Commit
cf834b2a
authored
Mar 06, 2019
by
nabil el mahiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using npm login
parent
377a6dce
Pipeline
#420
failed with stages
in 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
.gitlab-ci.yml
+1
-1
docker/Dockerfile
+15
-15
No files found.
.gitlab-ci.yml
View file @
cf834b2a
...
@@ -29,7 +29,7 @@ build:
...
@@ -29,7 +29,7 @@ build:
# Run ssh-agent (inside the build environment)
# Run ssh-agent (inside the build environment)
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
ssh-add <(echo "$SSH_PRIVATE_KEY"
| base64 -d
)
-
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/Dockerfile
View file @
cf834b2a
...
@@ -58,25 +58,25 @@ ARG SSH_PRIVATE_KEY
...
@@ -58,25 +58,25 @@ ARG SSH_PRIVATE_KEY
# RUN echo exit 0 > /usr/sbin/policy-rc.d
# RUN echo exit 0 > /usr/sbin/policy-rc.d
RUN
apt-get update
&&
apt-get install
-y
openssh-server
#
RUN apt-get update && apt-get install -y openssh-server
# 1. Create the SSH directory.
# 1. Create the SSH directory.
# 2. Populate the private key file.
# 2. Populate the private key file.
# 3. Set the required permissions.
# 3. Set the required permissions.
# 4. Add github to our list of known hosts for ssh.
# 4. Add github to our list of known hosts for ssh.
RUN
mkdir ~/.ssh
&&
\
#
RUN mkdir ~/.ssh && \
echo
"
$SSH_PRIVATE_KEY
"
>>
~/.ssh/id_rsa
&&
\
#
echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa && \
chmod 0600 ~/.ssh/id_rsa && \
#
chmod 0600 ~/.ssh/id_rsa && \
echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
#
echo "Host labs.atlasvoyages.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
RUN
touch ~/.ssh/known_hosts
#
RUN touch ~/.ssh/known_hosts
RUN
ssh-keyscan
-t
rsa labs.atlasvoyages.com
#
RUN ssh-keyscan -t rsa labs.atlasvoyages.com
RUN
ssh-keyscan
-t
rsa labs.atlasvoyages.com
>>
~/.ssh/known_hosts
#
RUN ssh-keyscan -t rsa labs.atlasvoyages.com >> ~/.ssh/known_hosts
RUN
ssh-keyscan
-t
rsa gitlab.com
#
RUN ssh-keyscan -t rsa gitlab.com
RUN
cat
~/.ssh/known_hosts
#
RUN cat ~/.ssh/known_hosts
RUN
ssh
-T
gitlab.com
#
RUN ssh -T gitlab.com
RUN
ssh
-T
git@gitlab.com
#
RUN ssh -T git@gitlab.com
RUN
ssh
-T
git@labs.atlasvoyages.com
#
RUN ssh -T git@labs.atlasvoyages.com
# RUN git clone https://nabilelmahiri:arigatou%4065@labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1
# RUN git clone https://nabilelmahiri:arigatou%4065@labs.atlasvoyages.com/pine/theme-atlasvoyages.git -b 0.3-beta-v1
...
...
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