Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use region as helm repo name #444

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions helmfile-push-S3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inputs:
description: Path to the S3 helm repo
required: true
default: ""
repo-region:
repo-region:
description: Region of the S3 helm repo
required: true
default: ""
Expand All @@ -36,13 +36,12 @@ runs:
uses: azure/setup-helm@v4
env:
HELM_VERSION: 3.12.3
HELM_REPO: helm
with:
version: ${{ env.HELM_VERSION }}
- name: Install Helm S3 plugin
- name: Install Helm S3 plugin
shell: bash
run: |
if ! command helm s3 2>&1 >/dev/null
if ! command helm s3 > /dev/null 2>&1
then
helm plugin install https://github.com/hypnoglow/helm-s3.git
else
Expand All @@ -62,7 +61,6 @@ runs:
- name: Push Chart to S3
shell: bash
run: |
echo "HELM_REPO=helm-$(date +%s)" >> $GITHUB_ENV
helm s3 init --ignore-if-exists ${{ inputs.repo-location }}
helm repo add ${{ env.HELM_REPO}} ${{ inputs.repo-location }}
ls "/dev/shm/chart/" | xargs -I {} helm s3 push --ignore-if-exists "/dev/shm/chart/{}" ${{ env.HELM_REPO}}
helm repo add ${{ inputs.repo-region}} ${{ inputs.repo-location }}
ls "/dev/shm/chart/" | xargs -I {} helm s3 push --ignore-if-exists "/dev/shm/chart/{}" ${{ inputs.repo-region}}