Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
Dusan Malusev committed Mar 13, 2022
1 parent 42a69d2 commit 19ea244
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,19 @@ jobs:
rm -rf /tmp/go-collect.zip
rm -rf /tmp/go-collect
rm -rf /bin/go-collect
wget -O /tmp/go-collect.zip -c https://github.com/BrosSquad/go-collect/releases/download/v${{ needs.tag.outputs.version }}/go-collect.zip
cd /tmp
wget -O /tmp/go-collect.zip -c "https://github.com/BrosSquad/go-collect/releases/download/v$VERSION/go-collect.zip"
mkdir -p /var/log/go_collect
mkdir -p /etc/go-collect
unzip -d go-collect /tmp/go-collect.zip
docker-compose -f /tmp/go-collect/bin/docker-compose.yml up --force-recreate -d
cp /tmp/go-collect/bin/config.yml /etc/go-collect/config.yml
cp /tmp/go-collect/bin/go-collect /bin/go-collect
chmod +x /bin/go-collect
migrate -source file:///tmp/go-collect/bin/migrations -database $DATABASE_URL up
cp /tmp/go-collect/bin/go-collect.service /usr/lib/systemd/system/go-collect.service
systemctl daemon-reload
systemctl enable --now go-collect
Expand Down
1 change: 1 addition & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ endif
@cp ./config.example.yml bin/config.yml
@cp ./go-collect.service bin/go-collect.service
@cp ./docker-compose.yml bin/docker-compose.yml
@cp -r ./migrations/ bin/migrations

.PHONY: zip
zip:
Expand Down

0 comments on commit 19ea244

Please sign in to comment.