Skip to content

Commit

Permalink
update taskfile to correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
olarriga committed Dec 29, 2022
1 parent d338f08 commit da64be1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ tasks:
- cp debian/prerm dist/packages/debian/DEBIAN/.
- cp debian/control dist/packages/debian/DEBIAN/.
- cp debian/conffiles dist/packages/debian/DEBIAN/.
- sed -i 's/#version#/{{.GIT_VERSION}}-{{.PACKAGE_BUILD_DATE}}/g' dist/packages/debian/DEBIAN/control
- sed -i 's/#version#/{{.GIT_VERSION}}/g' dist/packages/debian/DEBIAN/control
- mkdir -p dist/packages/debian/lib/systemd/system
- cp debian/banisher.service dist/packages/debian/lib/systemd/system/.
- mkdir -p dist/packages/debian/usr/sbin
- cp dist/banisher dist/packages/debian/usr/sbin/.
- mkdir -p dist/packages/debian/etc
- cp dist/config.yml dist/packages/debian/etc/banisher.yml
- dpkg-deb --root-owner-group -Zxz --build dist/packages/debian dist/banisher_{{.GIT_VERSION}}-{{.PACKAGE_BUILD_DATE}}_amd64.deb
- dpkg-deb --root-owner-group -Zxz --build dist/packages/debian dist/banisher_{{.GIT_VERSION}}_amd64.deb
- tar -czf dist/banisher_{{.GIT_VERSION}}_amd64.tar.gz -C dist banisher

generate-docker-image:
cmds:
- docker build --tag banisher-compile .

clean:
cmds:
- rm dist/*.deb
- rm dist/packages -R
- rm dist/banisher
- rm -f dist/*.deb
- rm -f dist/*.tar.gz
- rm -f dist/banisher

0 comments on commit da64be1

Please sign in to comment.