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

ci: sync the helm chart from the UI repo before building and releasing #70

Merged
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
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@ jobs:
name: Image build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# copy the helm chart from the UI repo
- name: checkout-the-ui-repo
uses: actions/checkout@v2
with:
repository: 'konveyor/move2kube-ui'
- name: copy-helm-chart-into-tmp
run: cp -r helm-charts/ /tmp/helm-charts-move2kube
- name: cleanup
run: rm -rf {*,.*} || true
- name: checkout-the-current-repo
uses: actions/checkout@v2
- name: copy-helm-chart-into-pwd
run: rm -rf helm-charts/ && cp -r /tmp/helm-charts-move2kube helm-charts
# build the operator container image
- id: image_tag
run: |
BRANCH="${GITHUB_REF#refs/heads/}"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: true
default: v0.1.0-beta.0
commit_ref:
description: "commit ref: The branch, tag or SHA of the commit to use for the release."
description: "commit ref: The branch or tag of the commit to use for the release. The same tag needs to exist in the UI repo for copying the Helm chart."
required: false
default: main

Expand Down Expand Up @@ -101,18 +101,32 @@ jobs:
name: Image build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# copy the helm chart from the UI repo
- name: checkout-the-ui-repo
uses: actions/checkout@v2
with:
repository: 'konveyor/move2kube-ui'
ref: ${{ github.event.inputs.commit_ref }}
- name: copy-helm-chart-into-tmp
run: cp -r helm-charts/ /tmp/helm-charts-move2kube
- name: cleanup
run: rm -rf {*,.*} || true
- name: checkout-the-current-repo
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.commit_ref }}
- name: copy-helm-chart-into-pwd
run: rm -rf helm-charts/ && cp -r /tmp/helm-charts-move2kube helm-charts
# build the bundle and container images
- name: install-yq
run: |
echo "installing yq..."
curl -L https://github.com/mikefarah/yq/releases/download/v4.13.5/yq_linux_amd64 -o /usr/local/bin/yq && chmod +x /usr/local/bin/yq
echo "yq installed"
- name: build
run: |
VERSION=${{ github.event.inputs.tag }} make docker-build
rm -rf bundle/
VERSION=${{ github.event.inputs.tag }} make docker-build
VERSION=${{ github.event.inputs.tag }} make bundle
VERSION=${{ github.event.inputs.tag }} make bundle-build
- run: echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
Expand Down