Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVEREST-107 dev CI #2

Merged
merged 7 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
name: Checks
runs-on: ubuntu-22.04

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Check default main state - dev version
run: |
if ! grep -q "docker.io/perconalab/everest-operator-bundle:0.0.0" catalog/everest-operator/veneer.yaml; then
echo "veneer.yaml should have the 0.0.0 image in the Stable channel images list"
exit 1
fi
- name: Check default main state - generated files
run: |
echo "Download opm tool"
curl -Lo /tmp/opm https://github.com/operator-framework/operator-registry/releases/latest/download/linux-amd64-opm
chmod +x /tmp/opm
echo "Render catalog"
/tmp/opm alpha render-template semver -o yaml < ./catalog/everest-operator/veneer.yaml > ./catalog/everest-operator/catalog.yaml
echo "Checking there is no source code changes"
git diff --exit-code

- name: Run debug commands on failure
if: ${{ failure() }}
run: |
env
pwd
git status
5 changes: 2 additions & 3 deletions .github/workflows/percona-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ on:
push:
branches:
- main
- release-[0-9]+.[0-9]+.[0-9]+*
tags:
- v*
workflow_dispatch:

jobs:

Expand All @@ -23,7 +21,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
percona/everest-catalog,enable=true
percona/everest-catalog,enable=${{ github.ref_type == 'tag' && !contains(github.ref_name, 'rc') }}
perconalab/everest-catalog
tags: |
type=match,pattern=v(.*),group=1
type=match,pattern=v(\d.\d),group=1
Expand Down
Loading