mirror of
https://github.com/getwax/bls-wallet-billboard.git
synced 2026-01-09 15:18:02 -05:00
Save docker build to tarball
This commit is contained in:
@@ -2,4 +2,11 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
docker build . -f backend.dockerfile -t billboard-backend:git-$(git rev-parse HEAD | head -c 7)
|
||||
PROJECT=billboard-backend
|
||||
VERSION=$(git rev-parse HEAD | head -c 7)
|
||||
TAG=$PROJECT:git-$VERSION
|
||||
TAR_PATH=build/$PROJECT-git-$VERSION.tar
|
||||
|
||||
docker build . -f backend.dockerfile -t $TAG
|
||||
docker save --output $TAR_PATH $TAG
|
||||
gzip $TAR_PATH
|
||||
|
||||
Reference in New Issue
Block a user