使用容器

This commit is contained in:
zhangchao
2024-10-17 23:46:45 +08:00
parent ea07ca2ab1
commit 7af4061640

View File

@@ -17,3 +17,15 @@ jobs:
run: |
ls ${{ gitea.workspace }}
- run: echo "This job's status is ${{ job.status }}."
container-job:
runs-on: ubuntu-latest
container: golang:latest
env:
GO111MODULE: on
GOPROXY: https://goproxy.cn,direct
ports:
- 80:80
volumes:
- /data:/data
options:
entrypoint: /bin/sh