Repository navigation
build(deps): bump golang.org/x/sys from 0.47.0 to 0.48.0 #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Docker 镜像构建' | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 'Go 鍗曞厓娴嬭瘯' | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: '杩愯娴嬭瘯' | |
| run: go test ./... | |
| - name: '静态检查 go vet' | |
| run: go vet ./... | |
| - name: '构建 Docker 镜像' | |
| run: | | |
| docker build -t simple-web-shell . | |
| - name: '导出并上传镜像工件' | |
| run: | | |
| docker save simple-web-shell | gzip > simple-web-shell-image.tar.gz | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: 'simple-web-shell-docker-image-${{ github.ref_name }}' | |
| path: 'simple-web-shell-image.tar.gz' | |
| if-no-files-found: 'warn' | |
| retention-days: 14 |