Skip to content

Instantly share code, notes, and snippets.

@daisuke-morita
Created February 7, 2016 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daisuke-morita/669d42cdb2f9d141d94a to your computer and use it in GitHub Desktop.
Save daisuke-morita/669d42cdb2f9d141d94a to your computer and use it in GitHub Desktop.
get-prev-rel.sh - 直前のバージョンを取得する
#!/bin/bash
export APP="example_app"
aws s3 cp s3://example-app-packages/latest.tar.gz /tmp/${APP}.tar.gz
mkdir -p rel/${APP} && rm -rf rel/${APP}/*
tar zxvf /tmp/${APP}.tar.gz -C rel/${APP}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment