mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 05:59:22 +00:00
* 196: qemu * 196: multi-arch; see also https://blog.devgenius.io/goreleaser-build-multi-arch-docker-images-8dd9a7903675
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: ci
|
|
on: push
|
|
jobs:
|
|
kubeconform-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
|
|
|
|
openapi2jsonschema-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: test
|
|
working-directory: ./scripts
|
|
run: make docker-test docker-acceptance
|
|
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- kubeconform-test
|
|
- openapi2jsonschema-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
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
- name: goreleaser
|
|
run: |
|
|
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
|
|
GITHUB_ACTOR=$(echo ${GITHUB_ACTOR} | tr '[:upper:]' '[:lower:]')
|
|
GIT_OWNER=${GITHUB_ACTOR} make release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|