Skip to content

build: 优化docker登录方式,使用更安全的--password-stdin参数 #76

build: 优化docker登录方式,使用更安全的--password-stdin参数

build: 优化docker登录方式,使用更安全的--password-stdin参数 #76

Workflow file for this run

name: golangci-lint
on: [push, pull_request]
jobs:
golangci:
name: golang-lint
runs-on: ubuntu-latest
steps:
- name: 设置go环境
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache-dependency-path: "go.sum"
- uses: actions/checkout@v4
- run: |
release_url=$(curl -s https://api.github.com/repos/opsre/go-ldap-admin-ui/releases/latest | grep "browser_download_url" | grep -v 'dist.zip.md5' | cut -d '"' -f 4); wget $release_url && unzip dist.zip && rm dist.zip && mv dist public/static
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.4.0
args: --timeout=5m --skip-files="public/client/feishu/feishu.go"
build:
name: go-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
release_url=$(curl -s https://api.github.com/repos/opsre/go-ldap-admin-ui/releases/latest | grep "browser_download_url" | grep -v 'dist.zip.md5' | cut -d '"' -f 4); wget $release_url && unzip dist.zip && rm dist.zip && mv dist public/static
- name: 设置go环境
uses: actions/setup-go@v5

Check failure on line 31 in .github/workflows/go-ci-check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go-ci-check.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
with:
go-version-file: "go.mod"
cache-dependency-path: "go.sum"
- name: Build
run: go build -v ./...