mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
13 lines
349 B
Bash
Executable file
13 lines
349 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eux
|
|
|
|
version=$1
|
|
|
|
dir=$(dirname "${BASH_SOURCE[0]}")
|
|
projectDir="$dir/../.."
|
|
tarballName="dnote_server_${version}_linux_amd64.tar.gz"
|
|
|
|
# copy over the build artifact to the Docker build context
|
|
cp "$projectDir/build/server/$tarballName" "$dir"
|
|
|
|
docker build -t dnote/dnote:"$version" --build-arg tarballName="$tarballName" .
|