Skip to content

Commit

Permalink
update dev to mahalo and set mahalo bucket.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeUkKim committed Apr 23, 2024
1 parent f29b9ee commit be40c25
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Watcher - devnet
name: Watcher - mahalo

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
id: auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.DEV_GCP_CREDENTIALS }}
credentials_json: ${{ secrets.MAHALO_GCP_CREDENTIALS }}

- name: Setup GCP SDK
id: setup-sdk
Expand Down Expand Up @@ -48,23 +48,23 @@ jobs:
# for file in ${ALL_CHANGED_FILES}; do
# echo "Copying $file to GCS..."
# path=$(dirname "$file")
# gsutil -m cp "$file" gs://initia-registry/v1/"$CURRENT_TIME"/changed/"$path"/
# gsutil -m cp "$file" gs://mahalo-initia-registry/v1/"$CURRENT_TIME"/changed/"$path"/
# done
# fi
if [ -n "${ALL_ADDED_FILES}" ]; then
for add in ${ALL_ADDED_FILES}; do
echo "Copying $add to GCS..."
path=$(dirname "$add")
gsutil -m cp "$add" gs://initia-registry/v1/"$CURRENT_TIME"/added/"$path"/
gsutil -m cp "$add" gs://mahalo-initia-registry/v1/"$CURRENT_TIME"/added/"$path"/
done
fi
if [ -n "${ALL_MODIFIED_FILES}" ]; then
for mod in ${ALL_MODIFIED_FILES}; do
echo "Copying $mod to GCS..."
path=$(dirname "$mod")
gsutil -m cp "$mod" gs://initia-registry/v1/"$CURRENT_TIME"/modified/"$path"/
gsutil -m cp "$mod" gs://mahalo-initia-registry/v1/"$CURRENT_TIME"/modified/"$path"/
done
fi
Expand All @@ -74,5 +74,5 @@ jobs:
echo "Writing $del to file..."
echo "$del" >> deleted_files
done
gsutil -m cp deleted_files gs://initia-registry/v1/"$CURRENT_TIME"/deleted/
gsutil -m cp deleted_files gs://mahalo-initia-registry/v1/"$CURRENT_TIME"/deleted/
fi

0 comments on commit be40c25

Please sign in to comment.