Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fawadasaurus authored Oct 30, 2023
1 parent aadb19a commit dcc9dcd
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ do
tag_flags="$tag_flags --tag=$tag"
done

# Store the output in a variable and capture both stdout and stderr
output=$(wick registry push "$(basename "$manifest_path")" $tag_flags 2>&1)
# Store the output in a variable
output=$(wick registry push "$(basename "$manifest_path")" $tag_flags 2>&1
echo $output
# Write the output to the GITHUB_OUTPUT environment file
echo "reference=$output" >> "$GITHUB_OUTPUT"
# # Store the output in a variable and capture both stdout and stderr
# output=$(wick registry push "$(basename "$manifest_path")" $tag_flags 2>&1)
# # Check the exit status of the wick command
# if [[ $? -ne 0 ]]; then
Expand All @@ -45,9 +52,9 @@ output=$(wick registry push "$(basename "$manifest_path")" $tag_flags 2>&1)
# fi
# Process the output with your sequence of commands
processed_output=$(echo "$output" | grep 'reference' | grep -E '"(\S*)"' | cut -d '"' -f2 | head -1)
echo $processed_output
# # Process the output with your sequence of commands
# processed_output=$(echo "$output" | grep 'reference' | grep -E '"(\S*)"' | cut -d '"' -f2 | head -1)
# echo $processed_output
# Write the processed output to the GITHUB_OUTPUT environment file
echo "::notice::reference=$processed_output" >> "$GITHUB_OUTPUT"
# # Write the processed output to the GITHUB_OUTPUT environment file
# echo "::notice::reference=$processed_output" >> "$GITHUB_OUTPUT"

0 comments on commit dcc9dcd

Please sign in to comment.