Skip to content

Commit

Permalink
gha: remove env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Linar Nasyyrov authored and Linar Nasyyrov committed Jan 16, 2025
1 parent cc17f9a commit bfa275e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/rockitcloud_private_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
- name: Run script
id: run-script
env:
TF_REGISTRY_URL: ${{ vars.TF_REGISTRY_URL }}
S3_REGISTRY_URL: ${{ vars.S3_REGISTRY_URL }}
S3_BUCKET_NAME: ${{ vars.S3_BUCKET_NAME }}
PROVIDER_NAME: ${{ vars.PROVIDER_NAME }}
S3_BACKUP_DIR: ${{ vars.S3_BACKUP_DIR }}
run: |
./scripts/gha-update-s3-registry.sh
Expand Down
6 changes: 3 additions & 3 deletions scripts/gha-update-s3-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
set -euo pipefail

TF_REGISTRY_URL=${TF_REGISTRY_URL:-"https://registry.terraform.io/"}
S3_REGISTRY_URL=${S3_REGISTRY_URL:-}
S3_BUCKET_NAME=${S3_BUCKET_NAME:-}
S3_REGISTRY_URL=${S3_REGISTRY_URL:-"https://hc-registry.website.k2.cloud/"}
S3_BUCKET_NAME=${S3_BUCKET_NAME:-"hc-registry"}
PROVIDER_NAME=${PROVIDER_NAME:-"c2devel/rockitcloud"}

S3_BACKUP_DIR=${S3_BACKUP_DIR:-}
S3_BACKUP_DIR=${S3_BACKUP_DIR:-"./s3_backup"}
TMP_DIR="/tmp/"

TF_VERSIONS_FILE="${TMP_DIR}/tf-versions.json"
Expand Down

0 comments on commit bfa275e

Please sign in to comment.