Skip to content
Snippets Groups Projects
Verified Commit b6931fcc authored by Simon's avatar Simon
Browse files

key base64 decode, build script, images defined

parent 9f5a8aba
No related branches found
No related tags found
No related merge requests found
Pipeline #1743 failed
...@@ -5,19 +5,25 @@ stages: ...@@ -5,19 +5,25 @@ stages:
build: build:
stage: build stage: build
image: monachus/hugo
script: script:
- echo Build my page - hugo
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- resources/
artifacts: artifacts:
paths: paths:
- public - public/
expire_in: 1 hour expire_in: 1 hour
review: review:
stage: review stage: review
image: instrumentisto/rsync-ssh
before_script: before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_PRE" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_PRE" | base64 -d | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.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'
...@@ -32,10 +38,11 @@ review: ...@@ -32,10 +38,11 @@ review:
stop_review: stop_review:
stage: review stage: review
image: instrumentisto/rsync-ssh
before_script: before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_RM" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_RM" | base64 -d | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.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'
...@@ -50,10 +57,11 @@ stop_review: ...@@ -50,10 +57,11 @@ stop_review:
production: production:
stage: production stage: production
image: instrumentisto/rsync-ssh
before_script: before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_PROD" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_PROD" | base64 -d | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment