Skip to content

Commit

Permalink
Merge pull request #210 from fluxcd/codegen-ci
Browse files Browse the repository at this point in the history
Check if working tree is dirty in CI
  • Loading branch information
stefanprodan authored Dec 3, 2021
2 parents 074cbc9 + 1341350 commit 62c06ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
run: make test
env:
KUBEBUILDER_ASSETS: ${{ github.workspace }}/kubebuilder/bin
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'run make test and commit changes'
exit 1
fi
- name: Build container image
run: |
make docker-build IMG=ghcr.io/fluxcd/${{ github.event.repository.name }}:latest \
Expand Down
5 changes: 2 additions & 3 deletions config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ spec:
- policy
type: object
status:
default:
observedGeneration: -1
description: ImagePolicyStatus defines the observed state of ImagePolicy
properties:
conditions:
Expand Down Expand Up @@ -146,7 +144,6 @@ spec:
description: LatestImage gives the first in the list of images scanned by the image repository, when filtered and ordered according to the policy.
type: string
observedGeneration:
description: ObservedGeneration is the last reconciled generation.
format: int64
type: integer
type: object
Expand Down Expand Up @@ -373,6 +370,8 @@ spec:
- policy
type: object
status:
default:
observedGeneration: -1
description: ImagePolicyStatus defines the observed state of ImagePolicy
properties:
conditions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ spec:
type: string
type: object
status:
default:
observedGeneration: -1
description: ImageRepositoryStatus defines the observed state of ImageRepository
properties:
canonicalImageName:
Expand Down Expand Up @@ -340,6 +338,8 @@ spec:
type: string
type: object
status:
default:
observedGeneration: -1
description: ImageRepositoryStatus defines the observed state of ImageRepository
properties:
canonicalImageName:
Expand Down

0 comments on commit 62c06ea

Please sign in to comment.