ok secrets now work?
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
env:
|
||||
STACK_NAME: bookstack
|
||||
PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}
|
||||
PORTAINER_API_URL: https://post.dev.nervesocket.com/l57glo5
|
||||
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
|
||||
run: |
|
||||
CURL=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks")
|
||||
echo $CURL
|
||||
@@ -25,11 +25,11 @@ jobs:
|
||||
echo "Got stack ID: $STACK_ID and Endpoint ID: $ENDPOINT_ID"
|
||||
|
||||
- name: Fetch stack configuration
|
||||
env:
|
||||
STACK_NAME: bookstack
|
||||
PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}
|
||||
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
|
||||
run: |
|
||||
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
|
||||
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
|
||||
|
||||
|
||||
# Get the stack details (including stack file content)
|
||||
curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks/$STACK_ID/file" \
|
||||
| jq -r '.StackFileContent' > stack.yml
|
||||
@@ -37,11 +37,11 @@ jobs:
|
||||
echo "Fetched stack configuration and saved it to stack.yml"
|
||||
|
||||
- name: Redeploy stack in Portainer
|
||||
env:
|
||||
STACK_NAME: bookstack
|
||||
PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}
|
||||
PORTAINER_API_URL: https://portainer.dev.nervesocket.com/api
|
||||
run: |
|
||||
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
|
||||
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
|
||||
|
||||
|
||||
# Read stack file content
|
||||
# STACK_FILE_CONTENT=$(jq -Rs . < stack.yml)
|
||||
STACK_FILE_CONTENT=$(echo "$(<stack.yml )")
|
||||
|
||||
Reference in New Issue
Block a user