Skip to content

Commit 5ee05f0

Browse files
committed
Add git commit id to docker command comment
1 parent f3887e0 commit 5ee05f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
## See the License for the specific language governing permissions and
1313
## limitations under the License.
1414

15-
# docker build "$PWD" --build-arg commit=d79ccd1 --build-arg version=v2.1.0 -t heroiclabs/nakama:2.1.0
15+
# docker build "$PWD" --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version=v2.1.1 -t heroiclabs/nakama:2.1.1
16+
# docker build "$PWD" --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version="v2.1.1-$(git rev-parse --short HEAD)" -t heroiclabs/nakama-prerelease:"2.1.1-$(git rev-parse --short HEAD)"
1617

1718
FROM golang:1.11.1-alpine3.7 as builder
1819

build/pluginbuilder/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
## See the License for the specific language governing permissions and
1313
## limitations under the License.
1414

15-
# docker build "$PWD" --file ./Dockerfile.pluginbuilder --build-arg commit=d79ccd1 --build-arg version=v2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0
15+
# docker build "$PWD" --file ./Dockerfile.pluginbuilder --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version=v2.1.1 -t heroiclabs/nakama-pluginbuilder:2.1.1
16+
# docker build "$PWD" --file ./Dockerfile.pluginbuilder --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version="v2.1.1-$(git rev-parse --short HEAD)" -t heroiclabs/nakama-prerelease:"2.1.1-$(git rev-parse --short HEAD)"
1617

1718
FROM golang:1.11.1-alpine3.7 as builder
1819

0 commit comments

Comments
 (0)