Skip to content

Commit

Permalink
Update private tangle action
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed May 7, 2024
1 parent b727788 commit 98a64fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/actions/private-tangle/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ runs:
repository: iotaledger/iota-core
path: iota-core

- name: Prepare files for start and stop
- name: Prepare file for start
shell: bash
run: |
echo "docker compose down -v" >> cleanup.sh
echo "rm *.snapshot" >> cleanup.sh
chmod +x cleanup.sh
# remove the last 5 lines and add docker compose with `-d` to run it in the background
sed -i -n -e :a -e '1,5!{P;N;D;};N;ba' run.sh
echo "docker compose -f docker-compose.yml up -d" >> run.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/private-tangle/tear-down/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'private-tangle-tear-down'
description: 'tear-down a private tangle'
name: "private-tangle-tear-down"
description: "tear-down a private tangle"
runs:
using: "composite"
steps:
- name: Tear down private tangle
shell: bash
run: |
sudo ./cleanup.sh
sudo docker compose down -v
working-directory: iota-core/tools/docker-network

0 comments on commit 98a64fd

Please sign in to comment.