高哲技术博客 高哲技术博客
首页
编程
爬虫
运维
硬件
收藏
归档
关于

嘉美伯爵

前途光明,无需畏惧
首页
编程
爬虫
运维
硬件
收藏
归档
关于
  • 方案

    • 自动化部署方案
    • Java如何进行代码校验
    • 如何使用Github Action完成持续集成
    • 容器部署优化及问题总结
    • 主流的serverless对比
    • 如何使用juicefs和minio存储数据
    • gitlab golang代码校验模版
      • demo
    • 使用gost进行内网端口转发并配置jupyter notebook
    • 如何快速下载github资源和代码
    • 如何通过yaml文件生成protobuf
    • git操作使用整理
    • 监控架构建设方案
    • 自由之书在gitops下的实践
    • 隧道代理建设方案
    • golang内部私服建设方案
  • 数据库

  • 虚拟化

  • 自动化部署

  • 中间件

  • 可观测

  • 操作系统

  • 运维
  • 方案
fovegage
2023-07-24
目录

gitlab golang代码校验模版

# demo

check_code:
  stage: check
  image: golang:1.19
  variables:
    JOB_STATUS: "$?"
  allow_failure: true
  except:
    - main
    - dev
  before_script:
    - go env -w GOPROXY=https://goproxy.io,direct
    - go env -w GOPRIVATE=git.xxx.com/spider
    - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
    - echo -e "machine git.xxx.com\nlogin $GITLAB_USERNAME \npassword $GITLAB_PASSWORD" > ~/.netrc
    - chmod 600 ~/.netrc
    - git config --global --add  url."git@hongyuan.com:".insteadof "https://git.xxx.com/"
  script:
    - go mod vendor
    - golangci-lint run
    - make all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#gitlab
上次更新: 2023-08-22 18:15:32
如何使用juicefs和minio存储数据
使用gost进行内网端口转发并配置jupyter notebook

← 如何使用juicefs和minio存储数据 使用gost进行内网端口转发并配置jupyter notebook→

最近更新
01
token embed和postion embed
06-10
02
k8s pod日志排查问题
10-24
03
golang内部私服建设方案
10-21
更多文章>
Theme by Vdoing | Copyright © 2018-2025 嘉美伯爵 | 鲁ICP备20001560号-4
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式