From 98a64fd55c6d72d56bf72fd687a10ca757956df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Tue, 7 May 2024 14:45:11 +0200 Subject: [PATCH] Update private tangle action --- .github/actions/private-tangle/setup/action.yml | 6 +----- .github/actions/private-tangle/tear-down/action.yml | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/actions/private-tangle/setup/action.yml b/.github/actions/private-tangle/setup/action.yml index 7b0fbc4de4..44428041c4 100644 --- a/.github/actions/private-tangle/setup/action.yml +++ b/.github/actions/private-tangle/setup/action.yml @@ -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 diff --git a/.github/actions/private-tangle/tear-down/action.yml b/.github/actions/private-tangle/tear-down/action.yml index cf3e7dc4c5..dfaeaaefcb 100644 --- a/.github/actions/private-tangle/tear-down/action.yml +++ b/.github/actions/private-tangle/tear-down/action.yml @@ -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