use mock folder name to test main branch release

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2025-01-06 11:07:53 +08:00
parent 2774b1c30c
commit d6bf6f1b55
No known key found for this signature in database
GPG Key ID: 10911689462678C7

View File

@ -99,9 +99,10 @@ jobs:
- name: Upload build - name: Upload build
uses: 'google-github-actions/upload-cloud-storage@v2' uses: 'google-github-actions/upload-cloud-storage@v2'
# https://github.com/google-github-actions/upload-cloud-storage # https://github.com/google-github-actions/upload-cloud-storage
# TODO: replace test-release back to ${{ steps.build-hosted.outputs.BUILD_HOSTED_LOCATION }}
with: with:
path: ${{steps.build-hosted.outputs.BUILD_HOSTED_DIR}} path: ${{steps.build-hosted.outputs.BUILD_HOSTED_DIR}}
destination: releases.rancher.com/harvester-ui/dashboard/${{ steps.build-hosted.outputs.BUILD_HOSTED_LOCATION }} destination: releases.rancher.com/harvester-ui/dashboard/test-release
parent: false parent: false
headers: |- headers: |-
cache-control: no-cache,must-revalidate cache-control: no-cache,must-revalidate
@ -142,64 +143,65 @@ jobs:
- name: Upload tar - name: Upload tar
uses: 'google-github-actions/upload-cloud-storage@v2' uses: 'google-github-actions/upload-cloud-storage@v2'
# TODO: replace test-release with ${{ env.REPO }}
with: with:
path: ${{steps.build-embedded.outputs.BUILD_EMBEDED_TGZ}} path: ${{steps.build-embedded.outputs.BUILD_EMBEDED_TGZ}}
destination: releases.rancher.com/harvester-ui/${{ env.REPO }} destination: releases.rancher.com/harvester-ui/test-release
parent: false parent: false
headers: |- headers: |-
cache-control: no-cache,must-revalidate cache-control: no-cache,must-revalidate
process_gcloudignore: false process_gcloudignore: false
build-and-upload-harvester-plugin: # build-and-upload-harvester-plugin:
name: Build & Upload Plugin # name: Build & Upload Plugin
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
with: # with:
fetch-depth: 1 # fetch-depth: 1
# Note - Cannot use the setup action here as it uses a different yarn install arg # # Note - Cannot use the setup action here as it uses a different yarn install arg
- uses: actions/setup-node@v4 # - uses: actions/setup-node@v4
with: # with:
node-version-file: '.nvmrc' # node-version-file: '.nvmrc'
cache: 'yarn' # cache: 'yarn'
- id: ci-build-pkg # - id: ci-build-pkg
name: Build pkg # name: Build pkg
run: ./shell/scripts/ci-build-pkg.sh harvester # run: ./shell/scripts/ci-build-pkg.sh harvester
- id: upload-gate # - id: upload-gate
name: Upload Gate # name: Upload Gate
run: ./scripts/build-upload-gate # run: ./scripts/build-upload-gate
- name: Get gcs auth # - name: Get gcs auth
uses: rancher-eio/read-vault-secrets@main # uses: rancher-eio/read-vault-secrets@main
with: # with:
secrets: | # secrets: |
secret/data/github/repo/${{ github.repository }}/googleauthkey/harvester/credentials credential | GOOGLE_AUTH ; # secret/data/github/repo/${{ github.repository }}/googleauthkey/harvester/credentials credential | GOOGLE_AUTH ;
- name: Apply gcs auth # - name: Apply gcs auth
# https://github.com/google-github-actions/auth # # https://github.com/google-github-actions/auth
uses: 'google-github-actions/auth@v2' # uses: 'google-github-actions/auth@v2'
with: # with:
credentials_json: "${{ env.GOOGLE_AUTH }}" # credentials_json: "${{ env.GOOGLE_AUTH }}"
- name: Upload plugin tar # - name: Upload plugin tar
uses: 'google-github-actions/upload-cloud-storage@v2' # uses: 'google-github-actions/upload-cloud-storage@v2'
with: # with:
path: dist-pkg/${{steps.ci-build-pkg.outputs.PKG_TARBALL}} # path: dist-pkg/${{steps.ci-build-pkg.outputs.PKG_TARBALL}}
destination: releases.rancher.com/harvester-ui/plugin # destination: releases.rancher.com/harvester-ui/plugin
parent: false # parent: false
headers: |- # headers: |-
cache-control: no-cache,must-revalidate # cache-control: no-cache,must-revalidate
process_gcloudignore: false # process_gcloudignore: false
- name: Upload plugin directory # - name: Upload plugin directory
uses: 'google-github-actions/upload-cloud-storage@v2' # uses: 'google-github-actions/upload-cloud-storage@v2'
with: # with:
path: dist-pkg/${{steps.ci-build-pkg.outputs.PKG_NAME}} # path: dist-pkg/${{steps.ci-build-pkg.outputs.PKG_NAME}}
destination: releases.rancher.com/harvester-ui/plugin/${{steps.ci-build-pkg.outputs.PKG_NAME}} # destination: releases.rancher.com/harvester-ui/plugin/${{steps.ci-build-pkg.outputs.PKG_NAME}}
parent: false # parent: false
headers: |- # headers: |-
cache-control: no-cache,must-revalidate # cache-control: no-cache,must-revalidate
process_gcloudignore: false # process_gcloudignore: false