aboutsummaryrefslogtreecommitdiffhomepage
path: root/deploy
diff options
context:
space:
mode:
authorEric Hagman <[email protected]>2020-10-23 03:03:41 -0400
committerGitHub <[email protected]>2020-10-23 09:03:41 +0200
commitf465c5c3079261eb7fa513e2d2793851b9c52b83 (patch)
tree9d39a3601ad2563d939e6b0e53eb24553cfb5077 /deploy
parent3400aff2588cbf9dd4629c05537d16b019d0fdf5 (diff)
downloadhugo-f465c5c3079261eb7fa513e2d2793851b9c52b83.tar.gz
hugo-f465c5c3079261eb7fa513e2d2793851b9c52b83.zip
build: Allow optional "nodeploy" tag to exclude deploy command from bin
Fixes #7826
Diffstat (limited to 'deploy')
-rw-r--r--deploy/cloudfront.go2
-rw-r--r--deploy/deploy.go2
-rw-r--r--deploy/deployConfig.go2
-rw-r--r--deploy/deployConfig_test.go2
-rw-r--r--deploy/deploy_azure.go2
-rw-r--r--deploy/deploy_test.go2
-rw-r--r--deploy/google.go2
7 files changed, 13 insertions, 1 deletions
diff --git a/deploy/cloudfront.go b/deploy/cloudfront.go
index dbdf9baf4..5e9a7a409 100644
--- a/deploy/cloudfront.go
+++ b/deploy/cloudfront.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (
diff --git a/deploy/deploy.go b/deploy/deploy.go
index f6b5b5785..aac0bf354 100644
--- a/deploy/deploy.go
+++ b/deploy/deploy.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (
diff --git a/deploy/deployConfig.go b/deploy/deployConfig.go
index cc2b15280..d4f78011e 100644
--- a/deploy/deployConfig.go
+++ b/deploy/deployConfig.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (
diff --git a/deploy/deployConfig_test.go b/deploy/deployConfig_test.go
index c385510fe..413b1211b 100644
--- a/deploy/deployConfig_test.go
+++ b/deploy/deployConfig_test.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (
diff --git a/deploy/deploy_azure.go b/deploy/deploy_azure.go
index 6251429ff..77bbf5b3d 100644
--- a/deploy/deploy_azure.go
+++ b/deploy/deploy_azure.go
@@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-// +build !solaris
+// +build !solaris,!nodeploy
package deploy
diff --git a/deploy/deploy_test.go b/deploy/deploy_test.go
index 0ae10b539..987c472ca 100644
--- a/deploy/deploy_test.go
+++ b/deploy/deploy_test.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (
diff --git a/deploy/google.go b/deploy/google.go
index be3ce52f0..9eae10da5 100644
--- a/deploy/google.go
+++ b/deploy/google.go
@@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// +build !nodeploy
+
package deploy
import (