go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.03k stars 5.49k forks source link

GiteaActions: docker command not found #30131

Closed bjdaijun closed 7 months ago

bjdaijun commented 7 months ago

Description

I used GiteaActions to build a docke image, but It failed with message : docker command not found. Here is my yaml file:

name: test
 on: push
 jobs: 
  build-and-push
  runs-on: ubuntu-latest
  steps:
    - name: checkout
       uses: actions/checkout@v2
    - name: dockerbuild
       run: docker build -t test:latest .

The first action checkout runs successfully, but the second action dockerbuild failed with message: docker not found.

And my act_runner in docker , with /var/run/docker/sock mounted.

Is this the right usage to build a docker image in actions?

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

run by docker

Database

None

yp05327 commented 7 months ago

See: https://gitea.com/gitea/act_runner/issues/425

bjdaijun commented 7 months ago

See: https://gitea.com/gitea/act_runner/issues/425

It works, thank you very much.