Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a2e965402 | |||
| 718c763f29 |
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -3,7 +3,7 @@ on: workflow_dispatch
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: privileged-ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone doki-theme-gitea
|
- name: Clone doki-theme-gitea
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
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
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
name: Test env
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: env
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
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 }}'
|
|
||||||
Reference in New Issue
Block a user