build 处理
ci/woodpecker/push/build Pipeline failed Details

This commit is contained in:
李亮亮 2024-05-10 11:29:41 +08:00
parent e8627d1e15
commit 4b90fcf5e1
2 changed files with 3 additions and 8 deletions

View File

@ -1,9 +1,4 @@
steps: steps:
- name: install
image: golang:1.21.6
commands:
- go mod tidy
- name: build - name: build
image: golang:1.21.6 image: golang:1.21.6
commands: commands:

View File

@ -1,6 +1,6 @@
# 表示依赖 alpine 最新版 # 表示依赖 alpine 最新版
FROM debian:latest FROM debian:12.5-slim
MAINTAINER Wang Chen Chen<932560435@qq.com> MAINTAINER Lianglianglee<lll941107@gmail.com>
ENV VERSION 1.0 ENV VERSION 1.0
# 在容器根目录 创建一个 apps 目录 # 在容器根目录 创建一个 apps 目录
@ -9,7 +9,7 @@ WORKDIR /apps
# 挂载容器目录 # 挂载容器目录
VOLUME ["/apps/config"] VOLUME ["/apps/config"]
# 拷贝当前目录下 go_docker_demo1 可以执行文件 # 拷贝当前目录下可以执行文件,配置文件等
COPY md-view-go /apps/md-view-go COPY md-view-go /apps/md-view-go
COPY static /apps/static COPY static /apps/static
COPY templates /apps/templates COPY templates /apps/templates