normally dont do this
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s
This commit is contained in:
@@ -14,6 +14,7 @@ jobs:
|
|||||||
PORTAINER_TOKEN: ${{ secrets.PORTAINER_API_KEY }}
|
PORTAINER_TOKEN: ${{ secrets.PORTAINER_API_KEY }}
|
||||||
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
|
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
|
||||||
run: |
|
run: |
|
||||||
|
echo $STACK_NAME $PORTAINER_TOKEN $PORTAINER_API_URL
|
||||||
STACK_DATA=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks" | jq -r ".[] | select(.Name==\"$STACK_NAME\") | {Id, EndpointId}")
|
STACK_DATA=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks" | jq -r ".[] | select(.Name==\"$STACK_NAME\") | {Id, EndpointId}")
|
||||||
|
|
||||||
STACK_ID=$(echo "$STACK_DATA" | jq -r ".Id")
|
STACK_ID=$(echo "$STACK_DATA" | jq -r ".Id")
|
||||||
|
|||||||
Reference in New Issue
Block a user