not ready for secrets i guess
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
This commit is contained in:
@@ -12,7 +12,8 @@ jobs:
|
||||
run: |
|
||||
STACK_NAME="bookstack"
|
||||
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
|
||||
PORTAINER_TOKEN="${{ secrets.PORTAINER_API_KEY }}"
|
||||
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
|
||||
|
||||
|
||||
STACK_DATA=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks" | jq -r ".[] | select(.Name==\"$STACK_NAME\") | {Id, EndpointId}")
|
||||
|
||||
@@ -25,7 +26,8 @@ jobs:
|
||||
- name: Fetch stack configuration
|
||||
run: |
|
||||
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
|
||||
PORTAINER_TOKEN="${{ secrets.PORTAINER_API_KEY }}"
|
||||
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" \
|
||||
@@ -36,7 +38,8 @@ jobs:
|
||||
- name: Redeploy stack in Portainer
|
||||
run: |
|
||||
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
|
||||
PORTAINER_TOKEN="${{ secrets.PORTAINER_API_KEY }}"
|
||||
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
|
||||
|
||||
|
||||
# Read stack file content
|
||||
STACK_FILE_CONTENT=$(jq -Rs . < stack.yml)
|
||||
|
||||
Reference in New Issue
Block a user