2017-09-12 05:01:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
## Get Postal Version
|
|
|
|
git clone https://github.com/atech/postal src
|
|
|
|
cd src
|
|
|
|
POSTAL_VER=$(git rev-parse --short HEAD)
|
2017-09-12 05:12:26 +02:00
|
|
|
cd ..
|
2017-09-12 05:01:31 +02:00
|
|
|
|
|
|
|
## Build Dockerfile
|
|
|
|
docker build --build-arg POSTAL_VER=${POSTAL_VER} -t alinuxninja/postal:latest -t alinuxninja/postal:${POSTAL_VER} .
|
|
|
|
|
|
|
|
## Docker push
|
|
|
|
docker push alinuxninja/postal
|