]> Untitled Git - lemmy.git/commitdiff
Use older git clone for woodpecker. (#2831)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 24 Apr 2023 19:40:36 +0000 (15:40 -0400)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 19:40:36 +0000 (21:40 +0200)
.woodpecker.yml

index e98659e37cbe4af8c00d17b5f709c8a54a342e85..4b5ff99ad387c1fa43491f75d08bf9fadbd10f1a 100644 (file)
@@ -4,14 +4,24 @@
 variables:
   - &muslrust_image 'clux/muslrust:1.67.0'
 
-clone:
-  git:
-    image: woodpeckerci/plugin-git
-    settings:
-      recursive: true
-      submodule_update_remote: true
+# Broken for cron jobs currently, see
+# https://github.com/woodpecker-ci/woodpecker/issues/1716
+# clone:
+#   git:
+#     image: woodpeckerci/plugin-git
+#     settings:
+#       recursive: true
+#       submodule_update_remote: true
 
 pipeline:
+  prepare_repo:
+    image: alpine:3
+    commands:
+      - apk add git
+        #- git fetch --tags
+      - git submodule init
+      - git submodule update --recursive --remote
+
   # use minimum supported rust version for most steps
   cargo_fmt:
     image: *muslrust_image