kubeconform/.github/workflows/main.yml

32 lines
No EOL
695 B
YAML

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: acceptance-test
run: make docker-acceptance
goreleaser:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout
uses: actions/checkout@v2
- name: goreleaser
run: |
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}