From b0be40bd847b070f83b916865806e115ddb7b776 Mon Sep 17 00:00:00 2001 From: Michael Edgar Date: Tue, 9 Jul 2024 15:33:15 -0400 Subject: [PATCH] fix: set release build work directories to target/checkout (#878) Signed-off-by: Michael Edgar --- .github/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c9d43066..ee17efb4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,16 +67,17 @@ jobs: - name: Build and Push Operator Bundle Image uses: docker/build-push-action@v6 with: - context: operator/target/bundle/console-operator/ + context: target/checkout/operator/target/bundle/console-operator/ platforms: linux/amd64,linux/arm64 provenance: false push: true - file: operator/target/bundle/console-operator/bundle.Dockerfile + file: target/checkout/operator/target/bundle/console-operator/bundle.Dockerfile tags: | ${{ secrets.IMAGE_REPO_HOSTNAME }}/${{ secrets.IMAGE_REPO_NAMESPACE }}/console-operator-bundle:${{steps.metadata.outputs.current-version}} ${{ secrets.IMAGE_REPO_HOSTNAME }}/${{ secrets.IMAGE_REPO_NAMESPACE }}/console-operator-bundle:latest - name: Build Operator Catalog + working-directory: target/checkout run: | curl -L -o opm https://github.com/operator-framework/operator-registry/releases/download/v1.43.1/linux-amd64-opm chmod +x opm @@ -88,17 +89,17 @@ jobs: - name: Build and Push Operator Catalog Image uses: docker/build-push-action@v6 with: - context: operator/target/ + context: target/checkout/operator/target/ platforms: linux/amd64,linux/arm64 provenance: false push: true - file: operator/target/catalog.Dockerfile + file: target/checkout/operator/target/catalog.Dockerfile tags: | ${{ secrets.IMAGE_REPO_HOSTNAME }}/${{ secrets.IMAGE_REPO_NAMESPACE }}/console-operator-catalog:${{steps.metadata.outputs.current-version}} ${{ secrets.IMAGE_REPO_HOSTNAME }}/${{ secrets.IMAGE_REPO_NAMESPACE }}/console-operator-catalog:latest - name: Build UI - working-directory: ui + working-directory: target/checkout/ui run: | npm ci --omit=dev export BACKEND_URL=http://example @@ -111,7 +112,7 @@ jobs: - name: Build and Push UI Image uses: docker/build-push-action@v6 with: - context: ui/ + context: target/checkout/ui/ platforms: linux/amd64,linux/arm64 provenance: false push: true