{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/3218","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/3218/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/3218/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/3218/events","html_url":"https://github.com/Shippable/support/issues/3218","id":194265530,"number":3218,"title":"Pipeline AWS elastic beanstalk ","user":{"login":"sheldon-sminq","id":11736700,"avatar_url":"https://avatars.githubusercontent.com/u/11736700?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldon-sminq","html_url":"https://github.com/sheldon-sminq","followers_url":"https://api.github.com/users/sheldon-sminq/followers","following_url":"https://api.github.com/users/sheldon-sminq/following{/other_user}","gists_url":"https://api.github.com/users/sheldon-sminq/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldon-sminq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldon-sminq/subscriptions","organizations_url":"https://api.github.com/users/sheldon-sminq/orgs","repos_url":"https://api.github.com/users/sheldon-sminq/repos","events_url":"https://api.github.com/users/sheldon-sminq/events{/privacy}","received_events_url":"https://api.github.com/users/sheldon-sminq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-08T07:27:18Z","updated_at":"2016-12-12T14:24:37Z","closed_at":null,"body":"WE are looking at using pipelines to support our CI/CD process flow. We already use shippable CI for our builds on AWS elastic beanstalk.\r\n\r\nJust wanted to know if pipelines provides support for Elastic beanstalk deployments \r\n"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/266443249","html_url":"https://github.com/Shippable/support/issues/3218#issuecomment-266443249","issue_url":"https://api.github.com/repos/Shippable/support/issues/3218","id":266443249,"user":{"login":"sheldon-sminq","id":11736700,"avatar_url":"https://avatars.githubusercontent.com/u/11736700?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldon-sminq","html_url":"https://github.com/sheldon-sminq","followers_url":"https://api.github.com/users/sheldon-sminq/followers","following_url":"https://api.github.com/users/sheldon-sminq/following{/other_user}","gists_url":"https://api.github.com/users/sheldon-sminq/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldon-sminq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldon-sminq/subscriptions","organizations_url":"https://api.github.com/users/sheldon-sminq/orgs","repos_url":"https://api.github.com/users/sheldon-sminq/repos","events_url":"https://api.github.com/users/sheldon-sminq/events{/privacy}","received_events_url":"https://api.github.com/users/sheldon-sminq/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T14:24:37Z","updated_at":"2016-12-12T14:24:37Z","body":"I have attached the sample sync repo yml files, also added the trigger integration within by CI repo\r\n\r\n```\r\nintegrations:\r\n     hub:\r\n         - integrationName: \"Docker hub\"\r\n           type: docker\r\n\r\n integrations:\r\n   notifications:\r\n     - integrationName: sminq-pipeline-trigger #Replace with name of the integration from subscription settings\r\n     type: webhook\r\n     payload:\r\n       - versionName=$BRANCH.$BUILD_NUMBER  #Replace with the tag of the image you pushed during CI\r\n     on_success: always\r\n     on_failure: never\r\n```\r\n\r\nresources.yml\r\n\r\n```\r\nresources:\r\n\r\n# resources for the dv demo pipelines from CI thru TEST environment\r\n\r\n#######1: Create DV pipeline\r\n\r\n# Docker Image for VISUALIZER\r\n  - name: sminq-api\r\n    type: image\r\n    integration: \"Docker hub\"\r\n    pointer:\r\n      sourceName: \"sminq/baseimage\"\r\n      isPull: false\r\n    #make sure this seed version exists in your registry account\r\n    seed:\r\n      versionName: master.1\r\n\r\n# Docker Image Options for VISUALIZER\r\n  - name: sminq-image-opts\r\n    type: dockerOptions\r\n    version:\r\n      portMappings:\r\n        - 80:80\r\n      publishAllPorts : true\r\n```\r\n\r\njobs.yml\r\n\r\n```\r\njobs:\r\n# TEST deployment for VISUALIZER to Amazon ECS\r\n  - name: deploy-to-beanstalk\r\n    type: runSh\r\n    steps:\r\n      - IN: sminq-api\r\n      - IN: sminq-aws\r\n      - IN: sminq-pipeline\r\n        switch: off\r\n      - TASK:\r\n        - script: source IN/sminq-aws/integration.env # add the credentials to the environment\r\n        - script: pip install awscli # install aws cli and/or ebcli and run config, using the credentials\r\n        - script: # look for the version.json in the IN/myImage for info on which image tag to use\r\n        - script: mv Dockerrun.aws.json /tmp/Dockerrun.tmp # update the Dockerrun.aws.json with the latest image tag that was pushed\r\n        - script: cat /tmp/Dockerrun.tmp | sed 's/<IMAGE_NAME>/sminq\\/baseimage/' | sed 's/<TAG>/api2.0.6.2146/' | sed 's/<DOCKER_CONFIG>//' | sed 's/<BUCKET_NAME>/elasticbeanstalk-ap-south-1-288789354248/' > Dockerrun.aws.json\r\n        - script: echo | eb init \"sminq-api-staging\" -r \"ap-south-1\" -p \"64bit Amazon Linux 2016.09 v2.2.0 running Docker 1.11.2\" # run eb deploy\r\n        - script: eb use \"sminq-api-staging\"\r\n        - script: eb deploy --staged -l shippable.sminq-https.api2.0.6.2146\r\n```\r\n\r\ntrigger.yml\r\n\r\n```\r\ntriggers:\r\n  - name: sminq-trigger\r\n    type: trigger\r\n    version:\r\n      counter: 1\r\n```\r\n\r\nQuestion: in the jobs section, what is the format of the version.json file? how do i read the values from that file? \r\n\r\n\r\n"}}
{"actor":{"display_login":"sheldon-sminq"}}