Browse Source

there is already git in the devcontainer

Andy Li 3 years ago
parent
commit
6ab2f6734a
1 changed files with 4 additions and 5 deletions
  1. 4 5
      Earthfile

+ 4 - 5
Earthfile

@@ -188,24 +188,23 @@ build-multiarch:
     BUILD --platform=linux/amd64 --platform=linux/arm64 +build --ADD_REVISION=$ADD_REVISION
 
 xmldoc:
-    DO +INSTALL_PACKAGES --PACKAGES="git"
     DO +INSTALL_NEKO
     DO +INSTALL_HAXE
 
     COPY --dir extra .
 
-    ARG COMMIT
-    ARG BRANCH
-
     WORKDIR extra
     RUN haxelib newrepo
     RUN haxelib git hxcpp  https://github.com/HaxeFoundation/hxcpp
     RUN haxelib git hxjava https://github.com/HaxeFoundation/hxjava
     RUN haxelib git hxcs   https://github.com/HaxeFoundation/hxcs
     RUN haxe doc.hxml
+
+    ARG COMMIT
+    ARG BRANCH
     RUN echo "{\"commit\":\"$COMMIT\",\"branch\":\"$BRANCH\"}" > doc/info.json
 
-    SAVE ARTIFACT --keep-ts ./doc/* AS LOCAL extra/doc/
+    SAVE ARTIFACT --keep-ts ./doc AS LOCAL extra/doc
 
 test-environment:
     # we use a sightly newer ubuntu for easier installation of the target runtimes (e.g. php)