Add Docker build capability check
This commit is contained in:
21
.gitea/workflows/build-check.yaml
Normal file
21
.gitea/workflows/build-check.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Check Container Build Capability
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
check-build:
|
||||
runs-on: macos-m1
|
||||
container:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
steps:
|
||||
- name: Check Docker Info
|
||||
run: |
|
||||
echo "Checking connection to host Docker/Podman daemon..."
|
||||
docker info
|
||||
|
||||
- name: Test Build
|
||||
run: |
|
||||
echo "FROM alpine" > Dockerfile
|
||||
echo "RUN echo 'Build successful'" >> Dockerfile
|
||||
docker build -t test-image .
|
||||
Reference in New Issue
Block a user