Преглед изворни кода

Updated Jenkinsfile and Ansible Playbook

fooser пре 7 година
родитељ
комит
453aa518da
2 измењених фајлова са 10 додато и 3 уклоњено
  1. 0 1
      Jenkinsfile
  2. 10 2
      ansible_playbook.yaml

+ 0 - 1
Jenkinsfile

@@ -17,7 +17,6 @@ pipeline {
         stage('Deploy') {
             steps {
                 echo 'Deploying....'
-                sh 'echo $(pwd)'
                 sh 'ansible-playbook -i dockerbox, ansible_playbook.yaml'
             }
         }

+ 10 - 2
ansible_playbook.yaml

@@ -1,15 +1,23 @@
 - hosts: all
   remote_user: fooser
 
+  tasks:
+
+  - name: Create directory where apps will be built
+    file:
+      path: /var/builds
+      state: directory
+      mode: 0755
+
   - name: Sync project folders from local to remote
     synchronize:
-      src: ./*
+      src: .
       dest: /var/builds
 
   - name: Build image and with buildargs
     docker_image:
       force: yes
-      path: /var/builds/rckr_api
+      path: /var/builds/rkcp
       name: fooser/rkcr
       tag: 0.1