From eb0ea659ecb64170587ca5c520eb1d0d62da5fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20J=C4=99drzejewski?= Date: Wed, 18 Aug 2021 17:35:51 +0200 Subject: [PATCH] removing verbose flag from curls --- .github/workflows/alert-on-issue-open-event.yml | 2 +- .github/workflows/build-nethermind-docker-images.yml | 2 +- .github/workflows/release-nethermind.yml | 2 +- .github/workflows/run-vault-integration-tests.yml | 2 +- .github/workflows/update-dappnode-package.yml | 2 +- .github/workflows/update-gitbook-docs.yml | 2 +- scripts/releasing/dockers.sh | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/alert-on-issue-open-event.yml b/.github/workflows/alert-on-issue-open-event.yml index 9ad1b763c44..60bc99fd8ad 100644 --- a/.github/workflows/alert-on-issue-open-event.yml +++ b/.github/workflows/alert-on-issue-open-event.yml @@ -29,4 +29,4 @@ jobs: } EOF } - curl -X POST https://api.eu.opsgenie.com/v2/alerts -H "Content-Type: application/json" -H "Authorization: GenieKey ${{ secrets.OPSGENIE_API_KEY }}" -d "$(composeMessage)" \ No newline at end of file + curl -s -X POST https://api.eu.opsgenie.com/v2/alerts -H "Content-Type: application/json" -H "Authorization: GenieKey ${{ secrets.OPSGENIE_API_KEY }}" -d "$(composeMessage)" \ No newline at end of file diff --git a/.github/workflows/build-nethermind-docker-images.yml b/.github/workflows/build-nethermind-docker-images.yml index f835f7b7b65..5e8a70a9b22 100644 --- a/.github/workflows/build-nethermind-docker-images.yml +++ b/.github/workflows/build-nethermind-docker-images.yml @@ -39,7 +39,7 @@ jobs: if: steps.settings.outputs.TAG == steps.settings.outputs.TAG_FROM_REPO run: | docker buildx build --platform=linux/amd64,linux/arm64 -t "${{ steps.settings.outputs.docker_image }}:latest" -t "${{ steps.settings.outputs.docker_image }}:${{ steps.settings.outputs.TAG }}" -f Dockerfile --build-arg GIT_COMMIT=$(git log -1 --format=%h) . --push - curl -v -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"dappnode", "client_payload": { "tag":"${{ steps.settings.outputs.TAG }}"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches + curl -s -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"dappnode", "client_payload": { "tag":"${{ steps.settings.outputs.TAG }}"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches - name: Building & Pushing image to docker registry (patch) if: steps.settings.outputs.TAG != steps.settings.outputs.TAG_FROM_REPO run: | diff --git a/.github/workflows/release-nethermind.yml b/.github/workflows/release-nethermind.yml index f4be9b00977..9437929838a 100644 --- a/.github/workflows/release-nethermind.yml +++ b/.github/workflows/release-nethermind.yml @@ -227,7 +227,7 @@ jobs: if: ${{ !contains(steps.settings.outputs.TAG, 'beta') && !contains(steps.settings.outputs.TAG, 'unstable') }} run: | docker buildx build --platform=linux/amd64,linux/arm64 -t "${{ steps.settings.outputs.docker_image }}:latest" -t "${{ steps.settings.outputs.docker_image }}:${{ steps.settings.outputs.TAG }}" -f Dockerfile --build-arg GIT_COMMIT=$(git log -1 --format=%h) . --push - curl -v -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"dappnode", "client_payload": { "tag":"${{ steps.settings.outputs.TAG }}"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches + curl -s -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"dappnode", "client_payload": { "tag":"${{ steps.settings.outputs.TAG }}"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches - name: Building & Pushing image to docker registry (patch) if: ${{ contains(steps.settings.outputs.TAG, 'beta') || contains(steps.settings.outputs.TAG, 'unstable') }} run: | diff --git a/.github/workflows/run-vault-integration-tests.yml b/.github/workflows/run-vault-integration-tests.yml index 5f6e5b0ae86..fe77fd15bc7 100644 --- a/.github/workflows/run-vault-integration-tests.yml +++ b/.github/workflows/run-vault-integration-tests.yml @@ -29,7 +29,7 @@ jobs: run: docker ps -a - name: Running Vault Tests run: | - curl -XPOST -H 'content-type: application/json' http://localhost:8081/api/v1/users -d '{"email": "hello@localhost", "password": "hello12345", "first_name": "A", "last_name": "User"}' -v + curl -s -X POST -H 'content-type: application/json' http://localhost:8081/api/v1/users -d '{"email": "hello@localhost", "password": "hello12345", "first_name": "A", "last_name": "User"}' -v ACCESS_TOKEN=$(curl -XPOST -H 'content-type: application/json' http://localhost:8081/api/v1/authenticate -d '{"email": "hello@localhost", "password": "hello12345"}' -v | jq ".token.token" | tr -d '"') export TOKEN="bearer ${ACCESS_TOKEN}" cd src/Nethermind/Nethermind.Vault.Test diff --git a/.github/workflows/update-dappnode-package.yml b/.github/workflows/update-dappnode-package.yml index bb7782c7235..cb65aba1a5e 100644 --- a/.github/workflows/update-dappnode-package.yml +++ b/.github/workflows/update-dappnode-package.yml @@ -16,7 +16,7 @@ jobs: env: DISPATCH_REPO: dappnode/DAppNodePackage-nethermind run: | - curl -v -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" \ + curl -s -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" \ -H "Accept: application/vnd.github.everest-preview+json" \ -H "Content-Type: application/json" \ --data '{"event_type":"new_release", "client_payload": { "tag":"${{ steps.get_tag.outputs.TAG }}"}}' \ diff --git a/.github/workflows/update-gitbook-docs.yml b/.github/workflows/update-gitbook-docs.yml index c7e1c11d8ca..cb4f10fc296 100644 --- a/.github/workflows/update-gitbook-docs.yml +++ b/.github/workflows/update-gitbook-docs.yml @@ -15,7 +15,7 @@ jobs: env: DISPATCH_REPO: NethermindEth/docs run: | - curl -v -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" \ + curl -s -X POST -u "${{ secrets.REPOSITORY_DISPATCH_TOKEN }}" \ -H "Accept: application/vnd.github.everest-preview+json" \ -H "Content-Type: application/json" \ --data '{"event_type":"docs_update"}' \ diff --git a/scripts/releasing/dockers.sh b/scripts/releasing/dockers.sh index a05d91a6761..7145d554343 100644 --- a/scripts/releasing/dockers.sh +++ b/scripts/releasing/dockers.sh @@ -4,6 +4,6 @@ PAT_GITHUB="{{ Place for GitHub Token }}" echo $TAG # Sending dispatch event to GitHub Actions -curl -v -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_amd64", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches -curl -v -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_arm64", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches -curl -v -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_arm32", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches \ No newline at end of file +curl -s -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_amd64", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches +curl -s -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_arm64", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches +curl -s -X POST -u $PAT_GITHUB -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type":"docker_arm32", "client_payload": { "tag":"'"$TAG"'"}}' https://api.github.com/repos/nethermindeth/nethermind/dispatches \ No newline at end of file