Changed automation to match platform that are move towards
This commit is contained in:
parent
80fc5b4f56
commit
4590c84e20
1 changed files with 6 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
echo "Chart Name: $CHART_NAME"
|
echo "Chart Name: $CHART_NAME"
|
||||||
|
|
||||||
# Note, this depends on the [Harbor Helm Index](https://github.com/AlanBridgeman/harbor-helm-index) pretty heavily
|
# Note, this depends on the [Harbor Helm Index](https://git.bridgemanaccessible.ca/Bridgeman-Accessible/harbor-helm-index) pretty heavily
|
||||||
# In particular, that tool allows us to treat what is an OCI registry as a Helm repository (which includes using `helm search repo`)
|
# In particular, that tool allows us to treat what is an OCI registry as a Helm repository (which includes using `helm search repo`)
|
||||||
helm repo add BridgemanAccessible https://helm.bridgemanaccessible.ca
|
helm repo add BridgemanAccessible https://helm.bridgemanaccessible.ca
|
||||||
|
|
||||||
|
|
@ -92,15 +92,15 @@ jobs:
|
||||||
LOCAL_VERSION=$NEW_LOCAL_VERSION
|
LOCAL_VERSION=$NEW_LOCAL_VERSION
|
||||||
|
|
||||||
# Update remote URL to use the GITHUB_TOKEN for authentication
|
# Update remote URL to use the GITHUB_TOKEN for authentication
|
||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.bridgemanaccessible.ca/${{ github.repository }}.git
|
||||||
|
|
||||||
# Setup git user details for committing the version change and tag
|
# Setup git user details for committing the version change and tag
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "Forgejo Actions"
|
||||||
git config user.email "actions@github.com"
|
git config user.email "actions@git.bridgemanaccessible.ca"
|
||||||
|
|
||||||
# Commit the version change to the `package.json` file
|
# Commit the version change to the `package.json` file
|
||||||
git add Chart.yaml
|
git add Chart.yaml
|
||||||
git commit -m "[Github Actions] Update Helm chart version to $(yq -r '.version' Chart.yaml)"
|
git commit -m "[Forgejo Actions] Update Helm chart version to $(yq -r '.version' Chart.yaml)"
|
||||||
|
|
||||||
# Push the changes to the repository
|
# Push the changes to the repository
|
||||||
git push origin HEAD:main
|
git push origin HEAD:main
|
||||||
|
|
@ -202,7 +202,7 @@ jobs:
|
||||||
FILLED_VALUES_FILE="values.filled.yaml"
|
FILLED_VALUES_FILE="values.filled.yaml"
|
||||||
|
|
||||||
# Download a filled version of the `values.yaml` file from a secure location
|
# Download a filled version of the `values.yaml` file from a secure location
|
||||||
DOWNLOAD_FILE=$(curl -sSL https://secure-storage.bridgemanaccessible.ca/services-dashboard/filled-values?token=${{ secrets.SECURE_STORAGE_TOKEN }} -o $FILLED_VALUES_FILE || echo "Failed to download filled values file.")
|
DOWNLOAD_FILE=$(curl -sSL https://secure-storage.bridgemanaccessible.ca/services-dashboard/values.filled.yaml?token=${{ secrets.SECURE_STORAGE_TOKEN }} -o $FILLED_VALUES_FILE || echo "Failed to download filled values file.")
|
||||||
if [ "$DOWNLOAD_FILE" == "Failed to download filled values file." ]; then
|
if [ "$DOWNLOAD_FILE" == "Failed to download filled values file." ]; then
|
||||||
echo "Error: $DOWNLOAD_FILE"
|
echo "Error: $DOWNLOAD_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue