Compare commits

26 Commits

Author SHA1 Message Date
codinget 447179939a ci: see with deploy token 2026-05-22 23:40:53 +00:00
codinget 6a0725e06e ci: try cross-repo and with inputs 2026-05-22 23:24:29 +00:00
codinget 22ac1eace8 ci: change perms? 2026-05-22 23:22:17 +00:00
codinget b52139af93 ci: why are there two -r args to tea? 2026-05-22 23:19:44 +00:00
codinget b4205cdccb ci: drake emoji 2026-05-22 23:18:38 +00:00
codinget 983a0157e4 ci: latest tea from dl.gitea.com 2026-05-22 23:17:25 +00:00
codinget e0fe689f75 ci: variables??? 2026-05-22 23:15:23 +00:00
codinget a44ba36fd4 ci: tea-cli maybe? 2026-05-22 23:13:25 +00:00
codinget e29992d3d3 ci: try with tea? 2026-05-22 23:12:32 +00:00
codinget 191ded608c ci: maybe another token? 2026-05-22 23:03:46 +00:00
codinget b04cc2a452 ci: maybe i can see whats wrong 2026-05-22 23:02:00 +00:00
codinget 3cb316c9f2 ci: wrong id? 2026-05-22 22:58:48 +00:00
codinget 960e51bed7 ci: fix syntax again 2026-05-22 22:57:17 +00:00
codinget a314036077 ci: fix dispatch yaml syntax 2026-05-22 22:56:25 +00:00
codinget 73a0ba223e ci: test dispatch 2026-05-22 22:55:04 +00:00
codinget 3b5a98af91 ci: test inputs 2026-05-22 22:33:49 +00:00
codinget e3cb05c461 ci: this is it? 2026-05-22 22:16:49 +00:00
codinget cfb6627678 ci: maybe with a better alpine version 2026-05-22 22:14:58 +00:00
codinget 88202e5d90 ci: or maybe i can, but something else failed either way 2026-05-22 22:13:38 +00:00
codinget c405f578cf ci: apparently I cant 2026-05-22 22:12:49 +00:00
codinget 9fa8f11480 ci: see if I can oneshot the copy 2026-05-22 22:11:06 +00:00
codinget d82eb837e0 ci: fix typo 2026-05-22 21:56:41 +00:00
codinget baca13d575 ci: test building stuff 2026-05-22 21:54:46 +00:00
codinget 0d92d66564 ci: we need a ref for actions/checkout 2026-05-22 21:43:52 +00:00
codinget 61b7d451d5 ci: see if we can checkout 2026-05-22 21:42:52 +00:00
codinget f26270e305 ci: list env variables 2026-05-22 21:32:13 +00:00
8 changed files with 80 additions and 70 deletions
@@ -1,25 +0,0 @@
name: Test alpine (privileged)
on: workflow_dispatch
defaults:
run:
shell: sh
jobs:
test:
runs-on: privileged-alpine-latest
steps:
- name: List available binaries
run: ls -lah /bin /sbin /usr/bin /usr/sbin /usr/local/bin
- name: List available sockets
run: ls -lah /var/run /run
try-docker-with-install:
runs-on: privileged-alpine-latest
steps:
- name: Install Docker
run: apk add --no-cache docker
- name: Try listing containers
run: docker ps
- name: Try running something
run: docker run -i --rm alpine:latest echo running inside alpine
+1 -1
View File
@@ -3,7 +3,7 @@ on: workflow_dispatch
jobs: jobs:
test: test:
runs-on: privileged-ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone doki-theme-gitea - name: Clone doki-theme-gitea
uses: actions/checkout@v6 uses: actions/checkout@v6
+25
View File
@@ -0,0 +1,25 @@
name: Test checkout
on: workflow_dispatch
jobs:
self:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: ls -lah
other-in-user:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
repository: codinget/totallynotmalware
- run: ls -lah
other-in-other-org:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
repository: privileged/action-tests
- run: ls -lah
+32
View File
@@ -0,0 +1,32 @@
name: Test Dispatch
on:
workflow_dispatch:
inputs:
restart:
description: Restart gitea after updating the theme files
required: false
type: boolean
jobs:
test-with-tea:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Install tea
run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea
- name: Add token
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea
- name: Trigger with tea
run: ./tea actions workflows dispatch --repo "${{ gitea.repository }}" --ref main --login "gitea" test-inputs.yaml --input "restart=${{ inputs.restart }}"
test-on-another:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Install tea
run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea
- name: Add token
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ secrets.deploy_token }}" --name gitea
- name: Trigger with tea
run: ./tea actions workflows dispatch --repo "privileged/deployments" --ref main --login "gitea" update-doki-theme-gitea.yaml
@@ -1,20 +0,0 @@
name: Test docker state (privileged)
on: workflow_dispatch
jobs:
test0:
runs-on: privileged-ubuntu-latest
steps:
- run: docker ps
test1:
runs-on: privileged-ubuntu-latest
steps:
- run: docker ps
test2:
runs-on: privileged-ubuntu-latest
steps:
- run: docker ps
test3:
runs-on: privileged-ubuntu-latest
steps:
- run: docker ps
@@ -1,24 +0,0 @@
name: Test docker run (privileged)
on: workflow_dispatch
jobs:
run0:
runs-on: privileged-ubuntu-latest
steps:
- run: docker run -i --rm alpine:latest echo running inside alpine
- run: docker ps
run1:
runs-on: privileged-ubuntu-latest
steps:
- run: docker run -i --rm alpine:latest echo running inside alpine
- run: docker ps
run2:
runs-on: privileged-ubuntu-latest
steps:
- run: docker run -i --rm alpine:latest echo running inside alpine
- run: docker ps
run3:
runs-on: privileged-ubuntu-latest
steps:
- run: docker run -i --rm alpine:latest echo running inside alpine
- run: docker ps
+8
View File
@@ -0,0 +1,8 @@
name: Test env
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: env
+14
View File
@@ -0,0 +1,14 @@
name: Test inputs
on:
workflow_dispatch:
inputs:
restart:
description: Restart gitea after updating the theme files
required: false
type: boolean
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo '${{ inputs.restart }}'