Commit 331b3610 authored by Revant Nandgaonkar's avatar Revant Nandgaonkar

fix: docker tag versions

parent 2a0d0b3a
......@@ -35,7 +35,7 @@ pack_erpnext_assets_version_11:
- git clone https://github.com/frappe/erpnext --branch version-11
- cd erpnext
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t erpnext-assets:$VERSION erpnext-assets -f erpnext-assets/v11.Dockerfile
- docker tag erpnext-assets:$VERSION castlecraft/erpnext-assets:v11
......@@ -59,7 +59,7 @@ pack_erpnext_assets_version_12:
- git clone https://github.com/frappe/erpnext --branch version-12
- cd erpnext
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t erpnext-assets:$VERSION erpnext-assets -f erpnext-assets/v12.Dockerfile
- docker tag erpnext-assets:$VERSION castlecraft/erpnext-assets:v12
......@@ -99,7 +99,7 @@ pack_erpnext_python_version_11:
- git clone https://github.com/frappe/erpnext --branch version-11
- cd erpnext
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t erpnext-python:$VERSION erpnext-python -f erpnext-python/v11.Dockerfile
- docker tag erpnext-python:$VERSION castlecraft/erpnext-python:v11
......@@ -123,7 +123,7 @@ pack_erpnext_python_version_12:
- git clone https://github.com/frappe/erpnext --branch version-12
- cd erpnext
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t erpnext-python:$VERSION erpnext-python -f erpnext-python/v12.Dockerfile
- docker tag erpnext-python:$VERSION castlecraft/erpnext-python:v12
......@@ -163,7 +163,7 @@ pack_frappe_socketio_version_11:
- git clone https://github.com/frappe/frappe --branch version-11
- cd frappe
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t frappe-socketio:$VERSION frappe-socketio -f frappe-socketio/v11.Dockerfile
- docker tag frappe-socketio:$VERSION castlecraft/frappe-socketio:v11
......@@ -187,7 +187,7 @@ pack_frappe_socketio_version_12:
- git clone https://github.com/frappe/frappe --branch version-12
- cd frappe
- git fetch --tags
- export VERSION=$(git describe --abbrev=0)
- export VERSION=$(git tag --list --sort=-version:refname | sed -n 1p | sed -e 's#.*@\(\)#\1#')
- cd ..
- docker build -t frappe-socketio:$VERSION frappe-socketio -f frappe-socketio/v12.Dockerfile
- docker tag frappe-socketio:$VERSION castlecraft/frappe-socketio:v12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment