Skip to content

Commit

Permalink
Empty values; only fetching for join now
Browse files Browse the repository at this point in the history
  • Loading branch information
MukuFlash03 committed Oct 3, 2024
1 parent 2860783 commit 9b3ff64
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/reusable_image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ jobs:
- name: Fetch latest release tags for all repositories
id: fetch-latest-release-tags
run: |
response=$(curl -L -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GH_FG_PAT_TAGS }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/MukuFlash03/nrel-openpath-join-page/releases/latest")
join_page_tag_name=$(echo "$response" | jq -r '.tag_name')
join_page_target_commitish=$(echo "$response" | jq -r '.target_commitish')
echo "$join_page_tag_name=${join_page_tag_name}" >> "$GITHUB_OUTPUT"
echo "$join_page_target_commitish=${join_page_target_commitish}" >> "$GITHUB_OUTPUT"
echo "Printing fetched tags:"
echo "join_page_tag_name=${join_page_tag_name}"
echo "join_page_target_commitish=${join_page_target_commitish}"
: <<'MAP_REPOS'
declare -A REPOS
REPOS["server"]="e-mission-server"
REPOS["join_page"]="nrel-openpath-join-page"
Expand All @@ -62,14 +78,19 @@ jobs:
echo "${var_name}_tag_name=${!var_name_tag_name}"
echo "${var_name}_target_commitish=${!var_name_target_commitish}"
done
MAP_REPOS
- name: Print fetched tags
run: |
echo "Printing fetched tags:"
echo "Printing fetched tags outputs:"
echo "Current join image tag: ${{ steps.fetch-latest-release-tags.outputs.join_page_tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.join_page_target_commitish }}"
: <<'PRINT_TAGS'
echo "Current server image tag: ${{ steps.fetch-latest-release-tags.outputs.server_tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.server_target_commitish }}"
echo "Current join-page image tag: ${{ steps.fetch-latest-release-tags.outputs.join_page_tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.join_page_target_commitish }}"
echo "Current admin-dash image tag: ${{ steps.fetch-latest-release-tags.outputs.admin_dash_tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.admin_dash_target_commitish }}"
echo "Current public-dash image tag: ${{ steps.fetch-latest-release-tags.outputs.public_dash_tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.public_dash_target_commitish }}"
PRINT_TAGS
- name: Set docker image tags
id: set-tags
Expand Down

0 comments on commit 9b3ff64

Please sign in to comment.