Skip to content

Commit

Permalink
Using server_image_tag since dashboard dockerfiles need it
Browse files Browse the repository at this point in the history
  • Loading branch information
MukuFlash03 committed Oct 6, 2024
1 parent 9aafc22 commit f9fd4d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/reusable_image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ jobs:
latest_tag=$(echo "$tags" | sort -V | tail -n 1)
previous_tag=$(echo "$tags" | sort -V | tail -n 2 | head -n 1)
echo "LATEST_SERVER_TAG=$latest_tag" >> "$GITHUB_OUTPUT"
echo "SERVER_IMAGE_TAG=$latest_tag" >> "$GITHUB_OUTPUT"
echo "PREVIOUS_SERVER_TAG=$previous_tag" >> "$GITHUB_OUTPUT"
- name: Bump up release tag
# if: ${{ inputs.repo == 'op-admin-dashboard' || inputs.repo == 'em-public-dashboard' }}
if: ${{ inputs.repo == 'op-admin-dashboard' || inputs.repo == 'em-public-dashboard' || inputs.repo == 'nrel-openpath-join-page'}}
id: increment-release-tag
run: |
current_server_tag=${{ steps.get-server-tag.outputs.LATEST_SERVER_TAG }}
current_server_tag=${{ steps.get-server-tag.outputs.SERVER_IMAGE_TAG }}
previous_server_tag=${{ steps.get-server-tag.outputs.PREVIOUS_SERVER_TAG }}
echo "Current server tag: $current_server_tag"
echo "Previous server tag: $previous_server_tag"
Expand Down Expand Up @@ -130,7 +130,9 @@ jobs:
- name: Print fetched tags
run: |
echo "Current image tag: ${{ steps.fetch-latest-release-tags.outputs.tag_name }} ; target_commit: ${{ steps.fetch-latest-release-tags.outputs.target_commitish }}"
echo "Incremented image tag: ${{ steps.increment-release-tag.outputs.new_repo_version }}"
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "Incremented image tag: ${{ steps.increment-release-tag.outputs.new_repo_version }}"
fi
- name: Set docker image tags
id: set-tags
Expand Down Expand Up @@ -160,12 +162,12 @@ jobs:
elif [ "${{ inputs.repo }}" = "op-admin-dashboard" ]; then
echo "Current admin-dash image tag: ${{ steps.set-tags.outputs.ADMIN_DASH_IMAGE_TAG }}"
echo "Latest server image tag (${{ github.event_name }}): ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TAG }}"
echo "Latest server image target commitish: ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TARGET }}"
# echo "Latest server image target commitish: ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TARGET }}"
elif [ "${{ inputs.repo }}" = "em-public-dashboard" ]; then
echo "Current notebook image tag (push): ${{ steps.set-tags.outputs.PUBLIC_DASH_NOTEBOOK_IMAGE_TAG }}"
echo "Current frontend image tag (push): ${{ steps.set-tags.outputs.PUBLIC_DASH_FRONTEND_IMAGE_TAG }}"
echo "Latest server image tag (${{ github.event_name }}): ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TAG }}"
echo "Latest server image target commitish: ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TARGET }}"
# echo "Latest server image target commitish: ${{ steps.get-server-tag.outputs.SERVER_IMAGE_TARGET }}"
fi
- name: docker login
Expand Down

0 comments on commit f9fd4d4

Please sign in to comment.