From 62455766d2ea7ab9da95af6948a62cb455fbc623 Mon Sep 17 00:00:00 2001 From: Peter Motzko Date: Fri, 30 Jun 2023 14:42:22 +0200 Subject: [PATCH] feat(devel): make Taskfile app namespace OS specific --- Taskfile.yaml | 2 +- dev-assets/tasks/{app.yaml => app_darwin.yaml} | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) rename dev-assets/tasks/{app.yaml => app_darwin.yaml} (80%) diff --git a/Taskfile.yaml b/Taskfile.yaml index 39ef81af3..4bcc61f45 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -34,7 +34,7 @@ includes: helm: taskfile: dev-assets/tasks/helm.yaml app: - taskfile: dev-assets/tasks/app.yaml + taskfile: dev-assets/tasks/app_{{OS}}.yaml tasks: check-prereqs: diff --git a/dev-assets/tasks/app.yaml b/dev-assets/tasks/app_darwin.yaml similarity index 80% rename from dev-assets/tasks/app.yaml rename to dev-assets/tasks/app_darwin.yaml index d101fb22d..bff0a1d35 100644 --- a/dev-assets/tasks/app.yaml +++ b/dev-assets/tasks/app_darwin.yaml @@ -24,3 +24,14 @@ tasks: desc: Build the whole app cmds: - ./gradlew build -PgithubToken=$GITHUB_TOKEN $SKIP_GRADLE_TASKS_PARAM + + get-token: + desc: Obtain a BEARER token from Keycloak to access the MIW API + dir: dev-assets/scripts + vars: + TOKEN: + sh: ./get_Token.sh + silent: true + cmds: + - echo "New Token -> {{.TOKEN}}" + - echo "BAERER {{.TOKEN}}" | pbcopy \ No newline at end of file