From cd2f1bad6680b5715e40c7fe77d99ef2db204115 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 21 Aug 2023 19:08:40 -0600 Subject: [PATCH] feat: initial commit --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ doc/tasks/gitea.md | 25 +++++++++++++++++++++++++ doc/tasks/webdav.md | 24 ++++++++++++++++++++++++ install.sh | 28 ++++++++++++++++++++++++++++ misc/share_all.png | Bin 0 -> 24827 bytes tasks/gitea.mk | 29 +++++++++++++++++++++++++++++ tasks/webdav.mk | 19 +++++++++++++++++++ 7 files changed, 164 insertions(+) create mode 100644 README.md create mode 100644 doc/tasks/gitea.md create mode 100644 doc/tasks/webdav.md create mode 100644 install.sh create mode 100644 misc/share_all.png create mode 100644 tasks/gitea.mk create mode 100644 tasks/webdav.mk diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac46e11 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# MkTools + +Tâches [Make](https://fr.wikipedia.org/wiki/Make) génériques à utiliser de projet en projet. + +![](./misc/share_all.png) + +## Utilisation + +1. Dans le fichier `Makefile` de votre projet, ajouter à la fin de celui ci: + + ```makefile + build: + # Votre propre tâche + + # [...] + + # Inclure les lignes suivantes: + + mktools: + rm -rf .mktools + curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL) + + -include .mktools/*.mk + ``` + +2. Synchroniser le répertoire des tâches + + ```shell + make mktools + ``` + +3. Vous pouvez commencer à utiliser les tâches Make partagées ! + +## Tâches disponibles + +|Tâches|Description|Documentation| +|------|-----------|-------------| +|`make mkt-webdav-upload`|Téléverser un fichier dans un répertoire WebDAV (Nextcloud)|[Voir ./doc/tasks/webdav.md](./doc/tasks/webdav.md)| +|`make mkt-gitea-release`|Créer une release sur un projet Gitea et téléverser des fichiers attachés|[Voir ./doc/tasks/gitea.md](./doc/tasks/gitea.md)| \ No newline at end of file diff --git a/doc/tasks/gitea.md b/doc/tasks/gitea.md new file mode 100644 index 0000000..c1e31a1 --- /dev/null +++ b/doc/tasks/gitea.md @@ -0,0 +1,25 @@ +# Tâches Gitea + +## `make mkt-gitea-release` + +La tâche `mkt-gitea-release` permet de créer une "release" sur un projet Gitea et de téléverser des fichiers attachés à celles ci pour qu'ils soient disponibles en téléchargement sur cette version. + +### Usage + +Exemple d'utilisation de la tâche pour la création d'une nouvelle release sur le projet factice `my-org/my-project` sur https://forge.cadoles.com, tout en attachant les fichiers présents dans le répertoire `dist/` + +```makefile +# Organisation Gitea du projet +MKT_GITEA_RELEASE_ORG ?= my-org +# Projet Gitea +MKT_GITEA_RELEASE_PROJECT ?= my-project +# Version associée à la nouvelle release +MKT_GITEA_RELEASE_VERSION ?= v0.0.0 +# Texte associé à la release Gitea +MKT_GITEA_RELEASE_BODY ?= My new release + +# Exécution de la tâche mkt-gitea-release en passant la liste +# des fichiers à téléverser avec la nouvelle version publiée +my-release: + $(MAKE) MKT_GITEA_RELEASE_ATTACHMENTS=$$(find dist/* -type f) mkt-gitea-release +``` \ No newline at end of file diff --git a/doc/tasks/webdav.md b/doc/tasks/webdav.md new file mode 100644 index 0000000..c98b3d2 --- /dev/null +++ b/doc/tasks/webdav.md @@ -0,0 +1,24 @@ +# Tâches WebDAV + +## `make mkt-webdav-upload` + +La tâche `mkt-webdav-upload` permet de téléverser un fichier sur un espace de partage de fichier proposant une interface WebDAV (Nextcloud par exemple). + +### Usage + +Exemple d'utilisation de la tâche pour le téléversement d'un fichier `my-doc.txt` généré par une tâche tierce dans le répertoire `my-doc` dans l'espace Nextcloud de l'utilisateur authentifié: + +```makefile +# Identifiants de connexion Nextcloud +# Il est conseillé bien entendu de ne pas laisser le mot de passe +# et le nom d'utilisateur "en dur" dans le fichier Makefile... +MKT_WEBDAV_USER ?= my-nextcloud-user +MKT_WEBDAV_PASSWD ?= my-nextcloud-password +# URL de base de l'interface WebDAV de l'espace Nextcloud Cadoles +MKT_WEBDAV_REMOTE_URL = https://nextcloud.cadoles.com/nextcloud/remote.php/dav/files +# Répertoire de destination du fichier à téléverser +MKT_WEBDAV_DIR = /$(MKT_WEBDAV_USER)/my-doc + +my-upload: + $(MAKE) MKT_WEBDAV_FILE=test.txt mkt-webdav-upload +``` \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..b1656ba --- /dev/null +++ b/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +TASKS_DIR=".mktools" +TASKS_FILES="webdav gitea" + +main() { + echo "Creating directory '$TASKS_DIR/'" + # Create $TASKS_DIR + mkdir -p "$TASKS_DIR" + + # Download each referenced task files in $TASKS_DIR + for f in $TASKS_FILES; do + echo "Downloading file '$TASKS_DIR/$f.mk'" + curl -qo "$TASKS_DIR/$f.mk" "https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/tasks/$f.mk" + done + + # Add $TASKS_DIR to .gitignore + if [ ! -f .gitignore ]; then + touch .gitignore + fi + grep -qF -- "$TASKS_DIR/" ".gitignore" || echo "$TASKS_DIR/" >> ".gitignore" + + echo "Done" +} + +main \ No newline at end of file diff --git a/misc/share_all.png b/misc/share_all.png new file mode 100644 index 0000000000000000000000000000000000000000..78a7e6bb46e37acb8cf9327a1fee81fd6bed5e89 GIT binary patch literal 24827 zcmd3sWmsH2```z6clY8HcXx(jgL|>!?(XhW1}Med-Jww2-MzTGwMbc>|NHLlyL;`2 z-EW(@a^^lK$sIXK&YfTKw*2-BfC-dUkOe?N0RT|%Kfv2IcE605^%np@L4gT?2mk<( z0Vn`y0Q$QW@$LaoNdH6wc>I&#-}3$YJ@&ulf5M3WEz7^lB>y2Z{9A^8f6fU74ZwZ> zPkHw^(Erl;Pg?6p*#FXB`Yu1bdrJ)~cY9MxE;bHMHckL1J13VQJHH?&2PFr;APSiLw|)TG`-_Ez`KLqt4+r~RL}(a9 zD5UpbaZCU-6bv*BJS;Rk0@6QG-kTa04hw({PsM?NLoK1^jLT^fjA)8SBMC~*C zz*50sbHKlAH^FfZPR^@C-~{zt;d0GzOPacX-&O&r@2R1&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$m z?`((Zq_N4h=6en@L1sE3)rqy9ArF)ZW@dvAH~#WhaukBK&Fyt{8lAGCVQ!Celn1>FMnF1&X5#{xm74mMcJ zCc$4!L*3$+cVl~ur)B{^?KvFlZw3|1o)VnJa2MSVR)Cf%)f2JI>inH`W_S&fz=VjO z;pUQ7rJIx))=kQ>oinvXCUC?w9Tj;flxdKFjeIIw+>5?-Wgr#vlxdDWEZ3O0XKJ6) zfDPHe1SSU&b8S9Y05_@fza0vi6!{+;Lg;@a<4x~{q8{P)l4DRC5k;CvC2Rch!4vHx*k0(MQp@Ds}qxn~I} zwb{J^?n)^Zh!xZ~q;Rq$O0z=}*57j3+4v%}&sf?~ay%3b;QUI>8|VPR=BgLCo|(+c z4}(Dt5Yo4gKA)pTJ+Dm^>Y(oa6!rLy>f5bcX#+#do&F&&WC9`bzad=&8)VO;p`oC) zJ9Pow3!6)yNyUS_D=UrN3isXQNO>$A`rqQ!}Vy>mgpIEL>V*#VXXOlW2R zAlK2Jfaef{W#!pRxdme>JxwCfd8*iIh(4O1!RR4tb185m`+2J_;1LudJVN_q2!Ga> zVeONwB(&IC6Q5(%Qw#K>oOg4i!?-Uc=xAo2v@@w3{MX59XW(o^D9sBKs z^>r8uo1`_?^_x;cshSMrw9ks@Q2cd%!i9))H|1?}v~$I#O9sN`BTjqqWKtP2hwJ~) ISpOFO2jGfjPXGV_ literal 0 HcmV?d00001 diff --git a/tasks/gitea.mk b/tasks/gitea.mk new file mode 100644 index 0000000..3c1511e --- /dev/null +++ b/tasks/gitea.mk @@ -0,0 +1,29 @@ +MKT_GITEA_RELEASE_PROJECT ?= +MKT_GITEA_RELEASE_ORG ?= +MKT_GITEA_RELEASE_BASE_URL ?= https://forge.cadoles.com +MKT_GITEA_RELEASE_VERSION ?= +MKT_GITEA_RELEASE_COMMIT_TARGET ?= $(shell git rev-parse HEAD) +MKT_GITEA_RELEASE_IS_DRAFT ?= false +MKT_GITEA_RELEASE_BODY ?= +MKT_GITEA_RELEASE_ATTACHMENTS ?= +MKT_GITEA_RELEASE_USERNAME ?= +MKT_GITEA_RELEASE_PASSWORD ?= + +mkt-gitea-release: tools/gitea-release/bin/gitea-release.sh + GITEA_RELEASE_PROJECT="$(MKT_GITEA_RELEASE_PROJECT)" \ + GITEA_RELEASE_ORG="$(MKT_GITEA_RELEASE_ORG)" \ + GITEA_RELEASE_BASE_URL="$(MKT_GITEA_RELEASE_BASE_URL)" \ + GITEA_RELEASE_VERSION="$(MKT_GITEA_RELEASE_VERSION)" \ + GITEA_RELEASE_NAME="$(MKT_GITEA_RELEASE_VERSION)" \ + GITEA_RELEASE_COMMITISH_TARGET="$(MKT_GITEA_RELEASE_COMMIT_TARGET)" \ + GITEA_RELEASE_IS_DRAFT="$(MKT_GITEA_RELEASE_IS_DRAFT)" \ + GITEA_RELEASE_BODY="$(MKT_GITEA_RELEASE_BODY)" \ + GITEA_RELEASE_ATTACHMENTS="$(MKT_GITEA_RELEASE_ATTACHMENTS)" \ + GITEA_RELEASE_USERNAME="$(MKT_GITEA_RELEASE_USERNAME)" \ + GITEA_RELEASE_PASSWORD="$(MKT_GITEA_RELEASE_PASSWORD)" \ + tools/gitea-release/bin/gitea-release.sh + +tools/gitea-release/bin/gitea-release.sh: + mkdir -p tools/gitea-release/bin + curl --output tools/gitea-release/bin/gitea-release.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-release.sh + chmod +x tools/gitea-release/bin/gitea-release.sh \ No newline at end of file diff --git a/tasks/webdav.mk b/tasks/webdav.mk new file mode 100644 index 0000000..20d36fd --- /dev/null +++ b/tasks/webdav.mk @@ -0,0 +1,19 @@ +MKT_WEBDAV_USER ?= +MKT_WEBDAV_PASSWD ?= +MKT_WEBDAV_REMOTE_URL ?= +MKT_WEBDAV_DIR ?= +MKT_WEBDAV_FILE ?= + +mkt-webdav-upload: + curl \ + -f \ + -u '$(MKT_WEBDAV_USER):$(MKT_WEBDAV_PASSWD)' \ + -X MKCOL \ + "$(MKT_WEBDAV_REMOTE_URL)/$(MKT_WEBDAV_DIR)" + curl \ + -f \ + -u '$(MKT_WEBDAV_USER):$(MKT_WEBDAV_PASSWD)' \ + -T "$(PWD)/$(MKT_WEBDAV_FILE)" \ + "$(MKT_WEBDAV_REMOTE_URL)/$(MKT_WEBDAV_DIR)/$(shell basename $(MKT_WEBDAV_FILE))" + +.PHONY: mkt-webdav-upload \ No newline at end of file