|
12 | 12 | required: true
|
13 | 13 | default: v0.1.0-beta.0
|
14 | 14 | commit_ref:
|
15 |
| - description: "commit ref: The branch, tag or SHA of the commit to use for the release." |
| 15 | + 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." |
16 | 16 | required: false
|
17 | 17 | default: main
|
18 | 18 |
|
@@ -101,18 +101,32 @@ jobs:
|
101 | 101 | name: Image build
|
102 | 102 | runs-on: ubuntu-latest
|
103 | 103 | steps:
|
104 |
| - - uses: actions/checkout@v2 |
| 104 | + # copy the helm chart from the UI repo |
| 105 | + - name: checkout-the-ui-repo |
| 106 | + uses: actions/checkout@v2 |
| 107 | + with: |
| 108 | + repository: 'konveyor/move2kube-ui' |
| 109 | + ref: ${{ github.event.inputs.commit_ref }} |
| 110 | + - name: copy-helm-chart-into-tmp |
| 111 | + run: cp -r helm-charts/ /tmp/helm-charts-move2kube |
| 112 | + - name: cleanup |
| 113 | + run: rm -rf {*,.*} || true |
| 114 | + - name: checkout-the-current-repo |
| 115 | + uses: actions/checkout@v2 |
105 | 116 | with:
|
106 | 117 | ref: ${{ github.event.inputs.commit_ref }}
|
| 118 | + - name: copy-helm-chart-into-pwd |
| 119 | + run: rm -rf helm-charts/ && cp -r /tmp/helm-charts-move2kube helm-charts |
| 120 | + # build the bundle and container images |
107 | 121 | - name: install-yq
|
108 | 122 | run: |
|
109 | 123 | echo "installing yq..."
|
110 | 124 | 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
|
111 | 125 | echo "yq installed"
|
112 | 126 | - name: build
|
113 | 127 | run: |
|
114 |
| - VERSION=${{ github.event.inputs.tag }} make docker-build |
115 | 128 | rm -rf bundle/
|
| 129 | + VERSION=${{ github.event.inputs.tag }} make docker-build |
116 | 130 | VERSION=${{ github.event.inputs.tag }} make bundle
|
117 | 131 | VERSION=${{ github.event.inputs.tag }} make bundle-build
|
118 | 132 | - run: echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
|
|
0 commit comments