Add .gitea/workflows/test-container-directive.yaml
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
name: Test Container Directive
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-container-execution:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# This instructs Gitea Actions to execute all job steps INSIDE this container
|
||||||
|
container:
|
||||||
|
image: node:20-alpine
|
||||||
|
# If your runner requires root/privileged access or specific volume mounts for DinD:
|
||||||
|
# options: --privileged
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Verify Environment Inside Container
|
||||||
|
run: |
|
||||||
|
echo "Current OS Release:"
|
||||||
|
cat /etc/os-release
|
||||||
|
echo "Node Version:"
|
||||||
|
node -v
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check Workspace Mount
|
||||||
|
run: |
|
||||||
|
echo "Workspace directory:"
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
Reference in New Issue
Block a user