Skip to content

Commit 7b2ae4b

Browse files
author
Megabyte Labs
committed
☁️ chore(automation): Applying changes from upstream repository.
1 parent a7b7075 commit 7b2ae4b

14 files changed

+505
-561
lines changed

.config/taskfiles/ansible/Taskfile-playbook.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
version: '3'
33

44
tasks:
5-
collections:download:
6-
cmds:
7-
- ansible-galaxy collection download -r requirements.yml &
8-
95
docs:
106
deps:
117
- docs:roles
@@ -157,6 +153,11 @@ tasks:
157153
populateChartVar "$TMP" "$ID"
158154
done
159155
156+
collections:download:
157+
cmds:
158+
- ansible-galaxy collection download -r requirements.yml &
159+
160+
160161
environment:
161162
desc: Prompts for which environment to use and then symlinks to it
162163
hide: '{{ne (print .REPOSITORY_TYPE "-" .REPOSITORY_SUBTYPE) "ansible-playbook"}}'

.config/taskfiles/cloud/Taskfile-dyno.yml

+353-351
Large diffs are not rendered by default.

.config/taskfiles/cloud/Taskfile-heroku.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ tasks:
1717
preconditions:
1818
- sh: '[ -n "$HEROKU_API_KEY" ]'
1919
msg: The HEROKU_API_KEY must be set to a personal access token.
20+

.config/taskfiles/cloud/Taskfile-s3.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,6 @@
22
version: '3'
33

44
tasks:
5-
bucket:create:
6-
deps:
7-
- :install:software:s5cmd
8-
summary: |
9-
# Create S3 Bucket
10-
11-
This task creates an S3 bucket in the given account
12-
13-
`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, `AWS_REGION` and `BUCKET_NAME` are passed from the calling task. The first 3
14-
variables are set as environment variables
15-
env:
16-
AWS_ACCESS_KEY_ID: '{{.AWS_ACCESS_KEY_ID}}'
17-
AWS_REGION: '{{.AWS_REGION}}'
18-
AWS_SECRET_ACCESS_KEY: '{{.AWS_SECRET_ACCESS_KEY}}'
19-
cmds:
20-
- s5cmd mb s3://'{{.BUCKET_NAME}}'
21-
225
bucket:jumpusb:populate:
236
deps:
247
- :install:software:axel
@@ -51,6 +34,23 @@ tasks:
5134
sh: mktemp
5235
cmds:
5336
- curl -sSL https://gitlab.com/megabyte-labs/jumpusb/-/raw/master/local/distros.json > "$DISTROS_TMP"
37+
bucket:create:
38+
deps:
39+
- :install:software:s5cmd
40+
summary: |
41+
# Create S3 Bucket
42+
43+
This task creates an S3 bucket in the given account
44+
45+
`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, `AWS_REGION` and `BUCKET_NAME` are passed from the calling task. The first 3
46+
variables are set as environment variables
47+
env:
48+
AWS_ACCESS_KEY_ID: '{{.AWS_ACCESS_KEY_ID}}'
49+
AWS_SECRET_ACCESS_KEY: '{{.AWS_SECRET_ACCESS_KEY}}'
50+
AWS_REGION: '{{.AWS_REGION}}'
51+
cmds:
52+
- s5cmd mb s3://'{{.BUCKET_NAME}}'
53+
5454
bucket:synchronize:
5555
deps:
5656
- :install:software:s5cmd

.config/taskfiles/install/Taskfile-gh.yml

+75-76
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ tasks:
8282
status:
8383
- '[ -f "C:\Program Files\Betwixt\Betwixt.exe" ]'
8484

85-
bitwarden:
86-
cmds:
87-
- task: bw:{{OS}}
88-
status:
89-
- '[ -f /usr/local/bin/bw ]'
90-
9185
bivac:
9286
cmds:
9387
- task: install:gh
9488
vars:
9589
BIN_NAME: bivac
9690
PACKAGE: camptocamp/bivac
9791

92+
bitwarden:
93+
cmds:
94+
- task: bw:{{OS}}
95+
status:
96+
- '[ -f /usr/local/bin/bw ]'
97+
9898
bw:darwin:
9999
cmds:
100100
- gh release download -R bitwarden/cli -p "bw-macos*.zip"
@@ -170,9 +170,9 @@ tasks:
170170
vars:
171171
BIN_NAME: dat
172172
PACKAGE: dat-ecosystem-archive/dat
173+
ZIP_OPTIONS: ' -j'
173174
TAR_OPTIONS: ' --strip-components 1'
174175

175-
ZIP_OPTIONS: ' -j'
176176
delta:
177177
cmds:
178178
- task: install:gh
@@ -181,6 +181,13 @@ tasks:
181181
PACKAGE: dandavison/delta
182182
TAR_OPTIONS: ' --strip-components 1'
183183

184+
dog:
185+
cmds:
186+
- task: install:gh
187+
vars:
188+
BIN_NAME: dog
189+
PACKAGE: ogham/dog
190+
184191
deno:
185192
cmds:
186193
- task: install:gh
@@ -230,13 +237,6 @@ tasks:
230237
BIN_NAME: doctl
231238
PACKAGE: digitalocean/doctl
232239

233-
dog:
234-
cmds:
235-
- task: install:gh
236-
vars:
237-
BIN_NAME: dog
238-
PACKAGE: ogham/dog
239-
240240
duf:
241241
cmds:
242242
- task: install:gh
@@ -325,9 +325,9 @@ tasks:
325325
- task: install:gh
326326
vars:
327327
BIN_NAME: Ganache
328-
EXE_PATTERN: '-p *setup.exe'
329-
330328
PACKAGE: trufflesuite/ganache-ui
329+
EXE_PATTERN: "-p *setup.exe"
330+
331331
gh:
332332
cmds:
333333
- task: install:gh
@@ -359,9 +359,9 @@ tasks:
359359
- task: install:gh
360360
vars:
361361
BIN_NAME: gitify
362-
EXE_PATTERN: '-p *Setup*.exe'
363-
364362
PACKAGE: manosim/gitify
363+
EXE_PATTERN: "-p *Setup*.exe"
364+
365365
gitleaks:
366366
cmds:
367367
- task: install:gh
@@ -416,14 +416,16 @@ tasks:
416416
status:
417417
- '[ -f C:/ProgramData/bin/hey.exe ]'
418418

419-
install:appimage:
419+
install:gh:
420+
deps:
421+
- :install:software:gh
420422
cmds:
421-
- gh release download -R '{{.PACKAGE}}' -p "*.AppImage"
422-
- mv *.AppImage /opt/{{.DEST_APPIMAGE_NAME}}.AppImage
423-
- chmod +x /opt/{{.DEST_APPIMAGE_NAME}}.AppImage
424-
- ln -s /opt/{{.DEST_APPIMAGE_NAME}}.AppImage /usr/local/bin/{{.DEST_APPIMAGE_NAME}}
425-
status:
426-
- '[ -f /opt/{{.DEST_APPIMAGE_NAME}}.AppImage ]'
423+
- task: install:gh:{{OS}}
424+
vars:
425+
BIN_NAME: '{{.BIN_NAME}}'
426+
PACKAGE: '{{.PACKAGE}}'
427+
TAR_OPTIONS: '{{.TAR_OPTIONS}}'
428+
ZIP_OPTIONS: '{{.ZIP_OPTIONS}}'
427429

428430
install:dmg:
429431
vars:
@@ -452,16 +454,14 @@ tasks:
452454
status:
453455
- '[ -f /Applications/{{.DMG_NAME}}.app ]'
454456

455-
install:gh:
456-
deps:
457-
- :install:software:gh
457+
install:appimage:
458458
cmds:
459-
- task: install:gh:{{OS}}
460-
vars:
461-
BIN_NAME: '{{.BIN_NAME}}'
462-
PACKAGE: '{{.PACKAGE}}'
463-
TAR_OPTIONS: '{{.TAR_OPTIONS}}'
464-
ZIP_OPTIONS: '{{.ZIP_OPTIONS}}'
459+
- gh release download -R '{{.PACKAGE}}' -p "*.AppImage"
460+
- mv *.AppImage /opt/{{.DEST_APPIMAGE_NAME}}.AppImage
461+
- chmod +x /opt/{{.DEST_APPIMAGE_NAME}}.AppImage
462+
- ln -s /opt/{{.DEST_APPIMAGE_NAME}}.AppImage /usr/local/bin/{{.DEST_APPIMAGE_NAME}}
463+
status:
464+
- '[ -f /opt/{{.DEST_APPIMAGE_NAME}}.AppImage ]'
465465

466466
install:gh:darwin:
467467
deps:
@@ -612,8 +612,7 @@ tasks:
612612
- :install:software:gh
613613
vars:
614614
BIN_FOLDER: C:/ProgramData/bin
615-
PATTERNS:
616-
-p "*x86_64-windows.zip" -p "*Windows_64-bit.tar.gz" -p "*windows-amd64*.zip" -p "*windows_amd64.zip" -p "*windows_amd64.tar.gz" -p "*windows-amd64*"
615+
PATTERNS: -p "*x86_64-windows.zip" -p "*Windows_64-bit.tar.gz" -p "*windows-amd64*.zip" -p "*windows_amd64.zip" -p "*windows_amd64.tar.gz" -p "*windows-amd64*"
617616
-p "*win-x64.zip" -p "*Windows-64bit.zip" -p "*64*windows-msvc.zip" -p "*windows_x64.zip" -p "*Windows_x86_64.tar.gz" -p "*win-*.exe" -p "*setup*.exe" -p "*Setup*.exe"
618617
-p "*installer*64*.exe"
619618
env:
@@ -625,46 +624,46 @@ tasks:
625624
$COUNT = 0;
626625
$installer=$false;
627626
Get-ChildItem -File | %{
628-
$FILE = $_.Name;
629-
$COUNT = $COUNT + 1;
630-
if($COUNT -eq 1 ){
631-
if (("$FILE" -like "*.tar.gz") -or ("$FILE" -like "*.zip")){
632-
tar -xzf "$FILE"{{.TAR_OPTIONS}};
633-
Remove-Item "$FILE" -Force;
634-
}elseif((! $installer) -and (("$FILE" -like "*setup*64*.exe") -or ("$FILE" -like "*setup*.exe") -or ("$FILE" -like "*installer*64*.exe") -or ("$FILE" -like "*64*installer*.exe"))){
635-
$installer=$true;
636-
Start-Process "$FILE" /S -NoNewWindow -Wait -PassThru;
637-
Remove-Item "$FILE" -Force;
638-
}
639-
}else{
640-
Write-Host 'Multiple releases have possibly been downloaded' -ForegroundColor Yellow;
641-
}
627+
$FILE = $_.Name;
628+
$COUNT = $COUNT + 1;
629+
if($COUNT -eq 1 ){
630+
if (("$FILE" -like "*.tar.gz") -or ("$FILE" -like "*.zip")){
631+
tar -xzf "$FILE"{{.TAR_OPTIONS}};
632+
Remove-Item "$FILE" -Force;
633+
}elseif((! $installer) -and (("$FILE" -like "*setup*64*.exe") -or ("$FILE" -like "*setup*.exe") -or ("$FILE" -like "*installer*64*.exe") -or ("$FILE" -like "*64*installer*.exe"))){
634+
$installer=$true;
635+
Start-Process "$FILE" /S -NoNewWindow -Wait -PassThru;
636+
Remove-Item "$FILE" -Force;
637+
}
638+
}else{
639+
Write-Host 'Multiple releases have possibly been downloaded' -ForegroundColor Yellow;
640+
}
642641
};
643642
Get-ChildItem;
644643
Remove-Item "CHANGELOG.md", "LICENSE", "LICENSE*", "README.md", "autocomplete", "completion*", "*_autocomplete", "contrib", "Changes" -EA SilentlyContinue -Force;
645644
mkdir {{.BIN_FOLDER}} -EA SilentlyContinue;
646645
pwd;
647646
if($installer){
648-
Write-Host '{{.BIN_NAME}} installed using the installer';
647+
Write-Host '{{.BIN_NAME}} installed using the installer';
649648
}elseif((Get-ChildItem -File | Measure).Count -eq 1){
650-
Write-Host 'Moving {{.BIN_NAME}} from its default location';
651-
Move-Item -Force * {{.BIN_FOLDER}}/{{.BIN_NAME}}.exe;
652-
}else{
653-
if(Test-Path .\bin){
654-
cd bin;
655-
if((Get-ChildItem -File | Measure).Count -eq 1){
656-
Write-Host 'Moving {{.BIN_NAME}} from the bin folder';
657-
Move-Item -Force * {{.BIN_FOLDER}}/{{.BIN_NAME}}.exe;
649+
Write-Host 'Moving {{.BIN_NAME}} from its default location';
650+
Move-Item -Force * {{.BIN_FOLDER}}/{{.BIN_NAME}}.exe;
658651
}else{
659-
Write-Host 'Unmatched binary named {{.BIN_NAME}} from *.tar.gz with a bin folder' -ForegroundColor Yellow;
660-
}
661-
cd ..;
662-
}elseif((Get-ChildItem -File {{.BIN_NAME}}* -ea SilentlyContinue | Measure).Count -gt 0){
663-
Write-Host 'Moving {{.BIN_NAME}} from its default location, but, there are other files that are not moved' -ForeGroundColor Yellow;
664-
Move-Item -Force {{.BIN_NAME}}*.exe {{.BIN_FOLDER}}/;
665-
}else{
666-
Write-Host 'Unmatched binary named {{.BIN_NAME}}' -ForegroundColor Yellow;
667-
}
652+
if(Test-Path .\bin){
653+
cd bin;
654+
if((Get-ChildItem -File | Measure).Count -eq 1){
655+
Write-Host 'Moving {{.BIN_NAME}} from the bin folder';
656+
Move-Item -Force * {{.BIN_FOLDER}}/{{.BIN_NAME}}.exe;
657+
}else{
658+
Write-Host 'Unmatched binary named {{.BIN_NAME}} from *.tar.gz with a bin folder' -ForegroundColor Yellow;
659+
}
660+
cd ..;
661+
}elseif((Get-ChildItem -File {{.BIN_NAME}}* -ea SilentlyContinue | Measure).Count -gt 0){
662+
Write-Host 'Moving {{.BIN_NAME}} from its default location, but, there are other files that are not moved' -ForeGroundColor Yellow;
663+
Move-Item -Force {{.BIN_NAME}}*.exe {{.BIN_FOLDER}}/;
664+
}else{
665+
Write-Host 'Unmatched binary named {{.BIN_NAME}}' -ForegroundColor Yellow;
666+
}
668667
}'
669668
status:
670669
- '[ -f {{.BIN_FOLDER}}/{{.BIN_NAME}}.exe ]'
@@ -816,9 +815,9 @@ tasks:
816815
- task: install:gh
817816
vars:
818817
BIN_NAME: Manta
819-
EXE_PATTERN: '*Setup*.exe'
820-
821818
PACKAGE: hql287/manta
819+
EXE_PATTERN: "*Setup*.exe"
820+
822821
mark-text:
823822
cmds:
824823
- task: marktext:{{OS}}
@@ -863,9 +862,9 @@ tasks:
863862
- task: install:gh
864863
vars:
865864
BIN_NAME: masscode
866-
EXE_PATTERN: '*Setup*.exe'
867-
868865
PACKAGE: antonreshetov/masscode
866+
EXE_PATTERN: "*Setup*.exe"
867+
869868
mergestat:
870869
cmds:
871870
- task: install:gh
@@ -910,9 +909,9 @@ tasks:
910909
- task: install:gh
911910
vars:
912911
BIN_NAME: mqttx
913-
EXE_PATTERN: '*Setup*x64.exe'
914-
915912
PACKAGE: agalwood/mqttx
913+
EXE_PATTERN: "*Setup*x64.exe"
914+
916915
nebula:
917916
cmds:
918917
- task: install:gh
@@ -1019,9 +1018,9 @@ tasks:
10191018
- task: install:gh
10201019
vars:
10211020
BIN_NAME: raindrop
1022-
EXE_PATTERN: '*Installer.exe'
1023-
10241021
PACKAGE: raindropio/raindrop
1022+
EXE_PATTERN: "*Installer.exe"
1023+
10251024
responsively:
10261025
cmds:
10271026
- task: responsively:{{OS}}

.config/taskfiles/install/Taskfile-requirements.yml

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ tasks:
107107
PACKAGE:
108108
sh: yq e '.["{{.REQUIREMENTS_KEY}}"]["{{.INSTALL_GROUP}}"]' {{.REQUIREMENTS_TASKFILE}} | sed 's/- / /' | tr -d '\n' | sed 's/^ //'
109109

110+
110111
install:deps:darwin:
111112
cmds:
112113
- task: :install:software:brew

0 commit comments

Comments
 (0)