-
Notifications
You must be signed in to change notification settings - Fork 60
39 lines (32 loc) · 899 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: ci
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: test
run: make docker-test
- name: build
run: make goreleaser-build-static
- name: build-generator
run: make docker-build-generator-static
- name: acceptance-tests
run: make acceptance-tests
goreleaser:
runs-on: ubuntu-latest
needs:
- test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # https://github.com/goreleaser/goreleaser-action/issues/56
- name: goreleaser
run: |
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}