Compare commits

...

39 Commits

Author SHA1 Message Date
ThaMunsta
80a2f51f98 global envs?
All checks were successful
Just test things / Pull-and-run (push) Successful in 28s
2025-03-16 16:40:33 -04:00
ThaMunsta
2049389ef4 helps if i spell right
All checks were successful
Just test things / Pull-and-run (push) Successful in 11s
2025-03-16 15:22:50 -04:00
ThaMunsta
1d22a80841 Merge branch 'tests' 2025-03-16 15:21:40 -04:00
ThaMunsta
933464003e just path? 2025-03-16 15:21:27 -04:00
ThaMunsta
84ecb4f6eb add echo 2025-03-16 15:19:07 -04:00
ThaMunsta
b94be64f28 tests 2025-03-16 15:18:33 -04:00
ThaMunsta
d814570426 i take that back. this is actually a weird usecase. 2025-03-16 15:11:33 -04:00
ThaMunsta
d9fca1201d deploy existing on push stack file? 2025-03-16 15:10:06 -04:00
ThaMunsta
a7bf3cd84d ready to deploy
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 15s
2025-03-16 15:03:15 -04:00
ThaMunsta
bcfbe05a88 fixed ok now only deploy when push tag 2025-03-16 15:02:46 -04:00
ThaMunsta
18ae6ea41f oh a string ffs
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 18s
2025-03-16 15:01:44 -04:00
ThaMunsta
26c578b638 idk
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 10s
2025-03-16 14:56:01 -04:00
ThaMunsta
7d30f715c5 args
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 10s
2025-03-16 14:45:14 -04:00
ThaMunsta
3079744b7f quotes
Some checks failed
Gitea Actions Demo / Create-Stack (push) Failing after 11s
2025-03-16 14:43:51 -04:00
ThaMunsta
e86405d564 init stack
Some checks failed
Gitea Actions Demo / Create-Stack (push) Failing after 10s
2025-03-16 14:43:05 -04:00
ThaMunsta
a2b1b45000 fix job
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 12s
2025-03-16 14:38:34 -04:00
ThaMunsta
28d3511623 init stack!
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 10s
2025-03-15 22:05:52 -04:00
ThaMunsta
fc6a6ecb55 test
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 12s
2025-03-15 22:02:13 -04:00
ThaMunsta
844a8eff34 updates 2025-03-15 22:00:53 -04:00
987c154021 Merge pull request 'init-stack' (#7) from init-stack into main
Reviewed-on: #7
2025-03-16 01:47:06 +00:00
ThaMunsta
23d0d0750d test 2025-03-15 21:43:11 -04:00
ThaMunsta
e9f21838e6 updates 2025-03-15 21:42:32 -04:00
ThaMunsta
52f1c80b29 updates 2025-03-15 21:39:50 -04:00
ThaMunsta
68279e1ade update 2025-03-15 21:39:31 -04:00
ThaMunsta
ef3d08e852 init 2025-03-15 21:38:40 -04:00
ThaMunsta
3317969f8a del 2025-03-15 21:37:50 -04:00
ThaMunsta
1fe761be3f Merge branch 'dev' 2025-03-15 21:37:03 -04:00
ThaMunsta
1e07053fbe update 2025-03-15 21:36:50 -04:00
ThaMunsta
479568ebea test
Some checks failed
Gitea Actions Demo / Create-Stack (pull_request) Failing after 48s
2025-03-15 21:30:46 -04:00
7fd0218dd7 Merge branch 'main' into dev 2025-03-16 01:27:54 +00:00
ThaMunsta
feb1b09ad3 try again? 2025-03-15 21:26:45 -04:00
f39862c0e5 Merge pull request 'test with action' (#5) from dev into main
Reviewed-on: #5
2025-03-16 01:25:50 +00:00
ThaMunsta
b654ba5725 test with action 2025-03-15 21:22:17 -04:00
a34183b4a3 Merge pull request 'test no action' (#4) from dev into main
Reviewed-on: #4
2025-03-16 01:21:50 +00:00
ThaMunsta
1d6e877cc3 test no action 2025-03-15 21:21:33 -04:00
ThaMunsta
9d7a7b0fb8 Merge branch 'init-stack' 2025-03-15 21:19:05 -04:00
ThaMunsta
406d6944e8 update to init stack workflow 2025-03-15 21:18:52 -04:00
7160d7687a Merge pull request 'test trigger' (#3) from init-stack into main
Reviewed-on: #3
2025-03-16 00:55:58 +00:00
ThaMunsta
c271e67b8d test trigger 2025-03-15 20:55:09 -04:00
3 changed files with 18 additions and 12 deletions

View File

@@ -2,20 +2,19 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
pull_request:
branches:
push:
tags:
- init-stack
paths:
- 'stack.yml'
jobs:
Create-Stack:
runs-on: synology
steps:
# if: contains(github.event.pull_request.head.ref, 'init-stack')
- name: Checkout
uses: https://github.com/actions/checkout@v4
with:
ref: init-stack
ref: main
- name: Get the endpoint ID
# Usually ID is 1, but you can get it from the API. Only skip this if you are VERY sure.
@@ -38,14 +37,16 @@ jobs:
STACK_FILE_CONTENT=$(echo "$(<stack.yml )")
# Prepare JSON payload
JSON_PAYLOAD=$(jq -n --arg stackFileContent "$STACK_FILE_CONTENT" \
'{stackFileContent: $stackFileContent}')
JSON_PAYLOAD=$(jq -n \
--arg stackFileContent "$STACK_FILE_CONTENT" \
--arg name "$STACK_NAME" \
'{stackFileContent: $stackFileContent, name: $name}')
echo "About to push the following JSON payload:"
echo $JSON_PAYLOAD
# Update stack in Portainer (this redeploys it)
DEPLOY_RESPONSE=$(curl -X POST "$PORTAINER_API_URL/stacks/$STACK_ID?endpointId=$ENDPOINT_ID" \
DEPLOY_RESPONSE=$(curl -X POST "$PORTAINER_API_URL/stacks/create/standalone/string?endpointId=$ENDPOINT_ID" \
-H "X-API-Key: $PORTAINER_TOKEN" \
-H "Content-Type: application/json" \
--data "$JSON_PAYLOAD")

View File

@@ -2,9 +2,12 @@
name: Just test things
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
pull_request:
branches:
- test-cmd
push:
paths:
- '**tests.yaml'
env:
TEST: "Hello World!"
jobs:
Pull-and-run:
@@ -20,3 +23,5 @@ jobs:
STACK_NAME: whoami
run: |
ls -la
echo "done"
echo $TEST

View File

@@ -8,4 +8,4 @@ services:
environment:
- TZ=America/Toronto
ports:
- 1115:80
- 1122:80