diff options
| author | Ben Woodward <ben@bdw.to> | 2021-02-28 10:34:29 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-28 10:34:29 -0800 |
| commit | afa5548e8dd9a4665e52acad65f9359e41d367b5 (patch) | |
| tree | 2bf0ad9604fea39104dd40c7e5737fe445afd600 /.github/workflows | |
| parent | 1fe19f9615891a8d6f7d5a8fc45c4de36172c16c (diff) | |
Github Actions CI (#20)
Replace CircleCI with Github Actions
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/master_push.yml | 23 | ||||
| -rw-r--r-- | .github/workflows/pull_request.yml | 15 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/master_push.yml b/.github/workflows/master_push.yml new file mode 100644 index 0000000..7c56fec --- /dev/null +++ b/.github/workflows/master_push.yml | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | name: ci | ||
| 2 | on: | ||
| 3 | push: | ||
| 4 | branches: master | ||
| 5 | jobs: | ||
| 6 | build-and-publish: | ||
| 7 | runs-on: ubuntu-latest | ||
| 8 | steps: | ||
| 9 | - | ||
| 10 | name: Checkout | ||
| 11 | uses: actions/checkout@v2 | ||
| 12 | - | ||
| 13 | name: Set up Docker | ||
| 14 | uses: docker/setup-buildx-action@v1 | ||
| 15 | - | ||
| 16 | name: Login to DockerHub | ||
| 17 | uses: docker/login-action@v1 | ||
| 18 | with: | ||
| 19 | username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| 20 | password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| 21 | - | ||
| 22 | name: Build and publish | ||
| 23 | run: make build publish | ||
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..5a2ee16 --- /dev/null +++ b/.github/workflows/pull_request.yml | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | name: ci | ||
| 2 | on: pull_request | ||
| 3 | jobs: | ||
| 4 | build: | ||
| 5 | runs-on: ubuntu-latest | ||
| 6 | steps: | ||
| 7 | - | ||
| 8 | name: Checkout | ||
| 9 | uses: actions/checkout@v2 | ||
| 10 | - | ||
| 11 | name: Set up Docker | ||
| 12 | uses: docker/setup-buildx-action@v1 | ||
| 13 | - | ||
| 14 | name: Build | ||
| 15 | run: make build | ||
