Skip to content

Commit

Permalink
draft proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Dec 24, 2024
1 parent 3135635 commit c6526aa
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/build-extension-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,35 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
yarn parse-tag-name ${{ inputs.tagged_release }} ${{ github.run_id }} "charts"
#!/usr/bin/env bash
set -eo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
BASE_DIR="$(
cd $SCRIPT_DIR && cd ../.. &
pwd
)"
git clone -b master https://github.com/rancher/dashboard.git dashboard-repo
${BASE_DIR}/dashboard-repo/shell/scripts/extension/parse-tag-name ${{ inputs.tagged_release }} ${{ github.run_id }} "charts"
- name: Run build script
shell: bash
id: build_script
run: |
publish="yarn publish-pkgs -s ${{ github.repository }} -b ${{ inputs.target_branch }}"
#!/usr/bin/env bash
set -eo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
BASE_DIR="$(
cd $SCRIPT_DIR && cd ../.. &
pwd
)"
publish="publish -s ${{ github.repository }} -b ${{ inputs.target_branch }}"
if [[ -n "${{ inputs.tagged_release }}" ]]; then
publish="$publish -t ${{ inputs.tagged_release }}"
Expand All @@ -98,8 +120,8 @@ jobs:
if [[ "${{ inputs.is_test }}" == "true" ]]; then
publish="$publish -f"
fi
$publish
${BASE_DIR}/dashboard-repo/shell/scripts/extension/${publish}
- name: Upload charts artifact
if: github.ref_type == 'tag' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request') || inputs.is_test == 'true'
Expand Down

0 comments on commit c6526aa

Please sign in to comment.