Bump io.quarkiverse.operatorsdk:quarkus-operator-sdk from 2.0.3 to 6.6.1 #249
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Workflow | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Apicurio' | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Checkout "${{ github.ref }}" | |
uses: actions/checkout@v2 | |
- name: Cache m2 repo | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build | |
# runs unit tests, builds container image and builds kubernetes dist | |
run: | | |
mvn package -Pbuild-image --no-transfer-progress -DtrimStackTrace=false | |
- name: Setup deploy manifests | |
# checks the kubernetes manifests in deploy folder are the same as the manifests built in dist folder | |
run: ./check-deploy-manifests.sh | |
- name: Setup Kubernetes | |
run: | | |
sudo curl https://raw.githubusercontent.com/andreaTP/skind/main/skind --output skind | |
sudo chmod +x skind | |
sudo mv skind /usr/local/bin/skind | |
skind start | |
skind status | |
# tags and pushes container image to minikube image registry and deploys the operator to setup test env | |
- name: setup e2e tests | |
run: ./e2e/scripts/prepare-env.sh | |
# executes e2e tests that expect the kubernetes cluster to be running and with the operator deployed | |
- name: e2e tests | |
run: mvn verify -Pe2e -pl e2e -am --no-transfer-progress -DtrimStackTrace=false | |
- name: Login to Quay.io Registry | |
if: github.event_name == 'push' | |
run: docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" quay.io | |
- name: Push container image | |
if: github.event_name == 'push' | |
run: | | |
COMMIT_HASH="$(git log --pretty=format:'%h' -n 1)" | |
docker tag quay.io/apicurio/apicurio-registry-kube-sync:latest-snapshot quay.io/apicurio/apicurio-registry-kube-sync:$COMMIT_HASH | |
docker push quay.io/apicurio/apicurio-registry-kube-sync:$COMMIT_HASH | |
docker push quay.io/apicurio/apicurio-registry-kube-sync:latest-snapshot |