Skip to content
Snippets Groups Projects
Commit e97bb67a authored by James Graham's avatar James Graham
Browse files

Remove deploy key for git checkout

parent b3c5a30d
No related branches found
No related tags found
No related merge requests found
...@@ -70,20 +70,12 @@ ...@@ -70,20 +70,12 @@
dest: '{{ project_dir }}' dest: '{{ project_dir }}'
when: vagrant_dir.stat.exists == True when: vagrant_dir.stat.exists == True
- name: Copy deploy key
copy:
src: 'deploy/.deployment-key'
dest: '~/.deployment-key'
mode: 0600
when: vagrant_dir.stat.exists == False
- name: Clone / update dev branch from main repo - name: Clone / update dev branch from main repo
git: git:
repo: 'ssh://git@github.com/PEDASI/PEDASI.git' repo: 'https://github.com/PEDASI/PEDASI.git'
dest: '{{ project_dir }}' dest: '{{ project_dir }}'
accept_hostkey: yes accept_hostkey: yes
key_file: '~/.deployment-key' version: '{{ branch | default("dev") }}'
version: dev
when: vagrant_dir.stat.exists == False when: vagrant_dir.stat.exists == False
- name: Copy dev settings - name: Copy dev settings
...@@ -98,19 +90,12 @@ ...@@ -98,19 +90,12 @@
- name: Setup production deployment - name: Setup production deployment
block: block:
- name: Copy deploy key
copy:
src: 'deploy/.deployment-key'
dest: '~/.deployment-key'
mode: 0600
- name: Clone / update master branch - name: Clone / update master branch
git: git:
repo: 'ssh://git@github.com/PEDASI/PEDASI.git' repo: 'https://github.com/PEDASI/PEDASI.git'
dest: '{{ project_dir }}' dest: '{{ project_dir }}'
accept_hostkey: yes accept_hostkey: yes
key_file: '~/.deployment-key' version: "{{ branch | default('master') }}"
version: master
- name: Copy production settings - name: Copy production settings
copy: copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment