box: wercker-labs/docker
build:
  steps:
    - script:
        name: Build and package the Docker image
        code: |
          cd $WERCKER_SOURCE_DIR
          sudo docker build -t evandbrown/eb-py-flask .
          CONTAINER_ID=$(sudo docker run -d evandbrown/eb-py-flask)
          sudo docker export $CONTAINER_ID > container.tar
          DATETIME=`date +%s`
          tar -cvzf $WERCKER_OUTPUT_DIR/application-$DATETIME.tgz container.tar Docker.mf
deploy:
  steps:
    - s3sync:
        key-id: $KEY
        key-secret: $SECRET
        bucket-url: $BUCKET
        source-dir: $WERCKER_OUTPUT_DIR
box: wercker-labs/docker
build:
  steps:
    - script:
        name: Build and package the Docker image
        code: |
          cd $WERCKER_SOURCE_DIR
          sudo docker build -t evandbrown/eb-py-flask .
          CONTAINER_ID=$(sudo docker run -d evandbrown/eb-py-flask)
          sudo docker export $CONTAINER_ID > container.tar
          DATETIME=`date +%s`
          tar -cvzf $WERCKER_OUTPUT_DIR/application-$DATETIME.tgz container.tar Docker.mf
deploy:
  steps:
    - s3sync:
        key-id: $KEY
        key-secret: $SECRET
        bucket-url: $BUCKET
Use default source_dir to sync
Use default source_dir to sync
