To deploy a new Magento store automatically via Bitbucket CI. Follow the following steps.
1. Set the following environment variables for the bitbucket repo with the magento store source code
AWS_ACCESS_KEY_ID=
| #!/bin/bash | |
| function list_include_item { local list="$1"; local item="$2"; if [[ $list =~ (^|[[:space:]])"$item"($|[[:space:]]) ]] ; then result=0; else result=1; fi; return $result;}; | |
| bases="alpine:latest nginx:1.11.3-alpine" | |
| delete= | |
| # append latest tag to each image | |
| for item in $(docker images --format "{{.Repository}}:{{.Tag}}@{{.ID}}") | |
| do | |
| export IFS=' ' | |
| IFS='@'; arr=($item); unset IFS; |
| $script = <<SCRIPT | |
| # Install docker | |
| curl -fsSL get.docker.com | sh | |
| # Install kubectl | |
| curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
| chmod +x ./kubectl | |
| sudo mv ./kubectl /usr/local/bin/kubectl | |
| # Install kubeadm | |
| cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
| [kubernetes] |
| add_action( 'wp_footer', 'cart_update_qty_script' ); | |
| function cart_update_qty_script() { | |
| if (is_cart()) : | |
| ?> | |
| <script> | |
| jQuery('div.woocommerce').on('change', '.qty', function(){ | |
| jQuery("[name='update_cart']").trigger("click"); | |
| }); | |
| </script> | |
| <?php |
| function ensure_select2() { | |
| wp_enqueue_style( 'select2', plugin_dir_url( __FILE__ ) . 'assets/css/select2.min.css' ); | |
| wp_enqueue_script( 'select2', plugin_dir_url( __FILE__ ) . 'assets/js/select2.js', array(), '1.0.0', true ); | |
| } | |
| add_action( 'admin_head' , 'ensure_select2' ); |
| ERROR: extension "pgcrypto" already exists | |
| Buildfile: /opt/dspace/dspace/target/dspace-installer/build.xml | |
| init_installation: | |
| [mkdir] Created dir: /dspace/bin | |
| [mkdir] Created dir: /dspace/config | |
| [mkdir] Created dir: /dspace/lib | |
| [mkdir] Created dir: /dspace/etc | |
| [mkdir] Created dir: /dspace/webapps | |
| [mkdir] Created dir: /dspace/triplestore |
| ./hey -m GET -n 1000000 https://ipdata.co -more | |
| Summary: | |
| Total: 476.9207 secs | |
| Slowest: 5.0308 secs | |
| Fastest: 0.0010 secs | |
| Average: 0.0225 secs | |
| Requests/sec: 2096.7846 | |
| Total data: 315238010 bytes | |
| Size/request: 315 bytes |
git push origin master
git tag 1.3 -m "desc"
git push --tags origin master
python setup.py sdist upload
I hereby claim:
To claim this, I am signing this object: