Skip to content

Commit 394dcfe

Browse files
Update build-and-deploy.yaml
1 parent a871d61 commit 394dcfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060
if [ -f "${dir}Dockerfile" ]; then
6161
dir_name=$(basename "$dir")
6262
if [ "${{ github.event.inputs.environment }}" == "finney" ]; then
63-
yaml_file="ops-setup/clusters/data-warehouse-finney/indexers/${dir}.yaml"
63+
yaml_file="ops-setup/clusters/data-warehouse-finney/indexers/${dir_name}.yaml"
6464
elif [ "${{ github.event.inputs.environment }}" == "testnet" ]; then
65-
yaml_file="ops-setup/clusters/data-warehouse-testnet/indexers/${dir}.yaml"
65+
yaml_file="ops-setup/clusters/data-warehouse-testnet/indexers/${dir_name}.yaml"
6666
fi
6767
6868
if [ -f "$yaml_file" ]; then
69-
sed -i 's|image: .*|image: ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/'${dir}':${{ github.sha }}|' "$yaml_file"
69+
sed -i 's|image: .*|image: ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/'${dir_name}':${{ github.sha }}|' "$yaml_file"
7070
else
7171
echo "Warning: $yaml_file not found"
7272
fi

0 commit comments

Comments
 (0)