docker_practice/cases/ci/actions/README.md

29 lines
563 B
Go

# GitHub Actions
GitGub Actions GitHub CI/CD
job step 使 Docker
```yaml
on: push
name: CI
jobs:
my-job:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 2
- name: run docker container
uses: docker://golang:alpine
with:
args: go version
```
##
* [Actions Docs](https://help.github.com/en/categories/automating-your-workflow-with-github-actions)