repoName,fullName,repoPath)return}funcdockerBuildAndRun(whttp.ResponseWriter,repoNamestring,fullNamestring,repoPathstring){dockerCmd:=exec.Command("sh","/opt/start.sh",repoName,fullName,repoPath
docker rmi -f $service_name echo "delete $service_name image" #构建 docker build -t $service_name . echo "build $service_name image" else echo "no exist $service_name image,build docker" #构建 docker build -t $service_name . echo "build $service_name image" fi #查看容器id CID=$(...
**原因:Docker部署的Runner,在pipeline中使用Docker CLI会报错,是因为默认的镜像中没有Docker CLI 相关ISSUE 解决方案: 使用papodaca/install-docker-action@main的action进行cli的安装。 示例脚本: 代码语言:yaml 复制 on:push:tags:-"v*.*.*"jobs:build:runs-on:ubuntu-lateststeps:-name:Checkoutuses:actions/...
部署时最好不要在挂载盘上启动docker-compose,我当时报了Error executing actionrunon resource 'ruby_block[directory resource: /data/GitLab]'这种错,换到系统盘启动docker-compose.yml就没事了。数据文件可以放在挂载盘。 推荐使用dockge管理docker。 可以看一下Docker 项目分享 - dockge- 管理 docker 项目从未...
- Update the title to use "Private" instead of "私有" - Add a section on integrating Gitea Action - Include YAML configuration examples for Gitea Action and Docker Build Args Signed-off-by: appleboy <appleboy.tw@gmail.com>master appleboy committed Sep 14, 2024 Verified 1 parent 6f1c86e...
通过Cache Action ,比较复杂,config.yaml 中的 cache 配置就是为这个服务的,这里不推荐。 通过docker volume 挂载到 container 容器的 /opt/hostedtoolcache/ ,其实就相当于一个共享的、持久化的文件夹,虽然不能跨主机,但直观易用,推荐。 在config.yaml 中开启缓存 volume : ...
git.domain.comusername:${{ env.GITHUB_ACTOR }}password:${{ secrets.GTCR_TOKEN }}-name:Build and push by digestuses:docker/build-push-action@v5id:buildwith:context:./appplatforms:${{ matrix.platform }}labels:${{ steps.meta.outputs.labels }}outputs:type=image,name=${{ env.CONTAINER_...
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 而run标签,就是linux下的shell脚本,既然是shell,那么就可以做很多事情了。 比如说你原本已有一套构建脚本(build.sh),那么可能稍作修改,就能用着Github...
Gitea 提供官方的 go-sdk,以及名为 tea 的CLI 工具 和 用于 Gitea Action 的 action runner。 gitea/awesome-gitea 是一个 Gitea 相关项目的列表,你可以在这里找到更多的第三方项目,包括 SDK、插件、主题等等。 作者 Maintainers Contributors Translators 授权许可 本项目采用 MIT 开源授权许可证,完整的授权说明已...
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1.6.25 DOCKER_IMAGE ?= gitea/gitea DOCKER_TAG ?= latest DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG) ifeq ($(HAS_GO), yes) GOPATH ?= $(shell $(GO) env GOPATH) ...