@@ -17,7 +17,6 @@ pipeline {
stage('Deploy') {
steps {
echo 'Deploying....'
- sh 'echo $(pwd)'
sh 'ansible-playbook -i dockerbox, 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