We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f1db1 commit 757e748Copy full SHA for 757e748
hooks/build
@@ -0,0 +1,6 @@
1
+#!/bin/bash
2
+
3
+echo "=> Building container"
4
+docker build \
5
+ --tag "$IMAGE_NAME" \
6
+ --file Dockerfile .
hooks/pre_build
@@ -0,0 +1,9 @@
+go()
+{
+ docker run --rm -v "$(pwd):/workspace" -w /workspace golang:latest go $@;
+}
7
8
+go get -u github.com/tcnksm/ghr github.com/mitchellh/gox
9
+go mod vendor
hooks/push
@@ -0,0 +1,11 @@
+echo "=> Fetch unshallow origin"
+git fetch --unshallow origin || true
+echo "=> Tag image:"
+docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:$(git describe --tags --abbrev=0 HEAD^)"
+docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:$(git describe --tags --abbrev=0 HEAD)"
10
+echo "=> Push images"
11
+docker push "${DOCKER_REPO}"
0 commit comments