revert test change

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee
2025-01-06 17:26:09 +08:00
parent 03d1174d8e
commit 871ad2e88d
4 changed files with 9 additions and 53 deletions
+4 -48
View File
@@ -21,46 +21,6 @@ env:
REPO: ${{github.event.repository.name || ''}}
jobs:
# build-and-upload-docker-image:
# name: Build & Upload Docker
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# id-token: write
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 1
# - id: upload-gate
# name: Upload Gate
# run: ./scripts/build-upload-gate
# - id: read-docker-secrets
# name: Read Docker Secrets
# uses: rancher-eio/read-vault-secrets@main
# with:
# secrets: |
# secret/data/github/repo/${{ github.repository }}/dockerhub/harvester/credentials username | DOCKER_USERNAME ;
# secret/data/github/repo/${{ github.repository }}/dockerhub/harvester/credentials password | DOCKER_PASSWORD ;
# - id: login-docker
# name: Docker Log in
# uses: docker/login-action@v3
# with:
# username: ${{ env.DOCKER_USERNAME }}
# password: ${{ env.DOCKER_PASSWORD }}
# - id: push-docker
# name: Docker Build
# uses: docker/build-push-action@v5
# with:
# provenance: false
# context: .
# push: true
# tags: rancher/harvester-ui:${{ github.ref_name }}
build-and-upload-hosted:
name: Build & Upload Hosted
runs-on: ubuntu-latest
@@ -100,9 +60,8 @@ jobs:
uses: 'google-github-actions/upload-cloud-storage@v2'
# https://github.com/google-github-actions/upload-cloud-storage
with:
# TODO: replace test-release back to ${{ steps.build-hosted.outputs.BUILD_HOSTED_LOCATION }}
path: ${{steps.build-hosted.outputs.BUILD_HOSTED_DIR}}
destination: releases.rancher.com/harvester-ui/dashboard/test-release
destination: releases.rancher.com/harvester-ui/dashboard/${{ steps.build-hosted.outputs.BUILD_HOSTED_LOCATION }}
parent: false
headers: |-
cache-control: no-cache,must-revalidate
@@ -145,8 +104,7 @@ jobs:
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: ${{steps.build-embedded.outputs.BUILD_EMBEDED_TGZ}}
# TODO: replace test-release with ${{ env.REPO }}
destination: releases.rancher.com/harvester-ui/test-release
destination: releases.rancher.com/harvester-ui/${{ env.REPO }}
parent: false
headers: |-
cache-control: no-cache,must-revalidate
@@ -199,10 +157,8 @@ jobs:
- name: Upload plugin directory
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
#TODO: replace test-release with ${{steps.ci-build-pkg.outputs.PKG_NAME}}
path: dist-pkg/harvester-test-release
#TODO: replace test-release with ${{steps.ci-build-pkg.outputs.PKG_NAME}}
destination: releases.rancher.com/harvester-ui/plugin/harvester-test-release
path: dist-pkg/${{steps.ci-build-pkg.outputs.PKG_NAME}}
destination: releases.rancher.com/harvester-ui/plugin/${{steps.ci-build-pkg.outputs.PKG_NAME}}
parent: false
headers: |-
cache-control: no-cache,must-revalidate