Skip to content

Commit

Permalink
fix operator build
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Dec 4, 2024
1 parent 13bc6c0 commit 2713ad3
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/feature-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ jobs:
run: |
cd everest-operator
git checkout -b $VERSION_TAG
sed -i "s/^VERSION ?=.*/VERSION ?= $VERSION/g" Makefile
make init
make release
Expand All @@ -175,8 +177,40 @@ jobs:
# commit and push the updated files
git commit -a -m "operator manifests"
# to build crds in helm, the remote ref with the version name should exist
git push origin $VERSION_TAG
git push origin $VERSION_TAG
- name: Operator - setup Docker meta for everest-operator
id: operator_meta
uses: docker/metadata-action@v5
with:
images: |
perconalab/everest-operator
tags: |
type=raw,value=${{ env.VERSION }}
- name: Operator - setup Docker meta for everest-operator-bundle
id: bundle_meta
uses: docker/metadata-action@v5
with:
images: |
perconalab/everest-operator-bundle
tags: |
type=raw,value=${{ env.VERSION }}
- name: Operator - push everest-operator image
uses: docker/build-push-action@v6
with:
context: everest-operator
push: true
tags: ${{ steps.operator_meta.outputs.tags }}

- name: Operator - push everest-operator-bundle image
uses: docker/build-push-action@v6
with:
context: everest-operator
push: true
tags: ${{ steps.bundle_meta.outputs.tags }}
file: everest-operator/bundle.Dockerfile

- name: Helm - checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -215,39 +249,6 @@ jobs:
cd everest-operator
git push -d origin $VERSION_TAG
- name: Operator - setup Docker meta for everest-operator
id: operator_meta
uses: docker/metadata-action@v5
with:
images: |
perconalab/everest-operator
tags: |
type=raw,value=${{ env.VERSION }}
- name: Operator - setup Docker meta for everest-operator-bundle
id: bundle_meta
uses: docker/metadata-action@v5
with:
images: |
perconalab/everest-operator-bundle
tags: |
type=raw,value=${{ env.VERSION }}
- name: Operator - push everest-operator image
uses: docker/build-push-action@v6
with:
context: everest-operator
push: true
tags: ${{ steps.operator_meta.outputs.tags }}

- name: Operator - push everest-operator-bundle image
uses: docker/build-push-action@v6
with:
context: everest-operator
push: true
tags: ${{ steps.bundle_meta.outputs.tags }}
file: everest-operator/bundle.Dockerfile

- name: VS - checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 2713ad3

Please sign in to comment.