-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
34 lines (24 loc) · 829 Bytes
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: 3
dotenv: [.env]
requisites:
# gvm use go1.20
vars:
ReleaseDate:
sh: date "+%Y/%m/%d-%H:%M"
## Pendiente por organizar
tasks:
run:
cmds:
- go run cmd/main.go --debug
release:
cmds:
#- echo {{.ReleaseDate}} {{.Author}}
- DATE=$(ReleaseDate) AUTHOR=$(Author) goreleaser --skip-validate --skip-publish --rm-dist
local-release:
cmds:
- task: release
- sudo rm -rf {{.MY_INFINITY_HOME}}/.dave-programs/refreshSshConfigHosts
- sudo cp dist/Ec2HostConfigMaker_linux_amd64_v1/Ec2HostConfigMaker {{.MY_INFINITY_HOME}}/.dave-programs/refreshSshConfigHosts
publish:
cmds:
- aws s3 cp dist/Ec2HostConfigMaker_linux_amd64_v1/Ec2HostConfigMaker s3://{{.BUCKET_NAME}}/{{.REMOTE_PREFIX}}/SshEc2HostMaker/refreshSshConfigHosts-latest --profile traze