Skip to content

Commit

Permalink
Fix PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth More authored and Siddharth More committed Apr 24, 2024
1 parent 64e1904 commit 83c6311
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-publish-opr-node-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ on:
version:
description: 'Version (Required)'
required: true
gitCommit:
gitcommit:
description: 'GitCommit (Required)'
required: true
gitDate:
description: 'GitDate (Required)'
required: true
release_tag:
description: 'Release Tag (Optional)'
required: false
Expand All @@ -36,6 +33,12 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_sha }}
- name: Get Commit Date
id: get_date
run: |
GIT_DATE=$(git log -1 --format=%cd --date=format:'%Y-%m-%d' ${{ github.event.inputs.gitcommit }} || date '+%Y-%m-%d')
echo "GIT_DATE=$GIT_DATE" >> $GITHUB_ENV
echo "::set-output name=gitDate::$GIT_DATE"
- name: Setup Buildx
uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -73,7 +76,7 @@ jobs:
tags: ${{ env.REGISTRY }}/layr-labs/eigenda/opr-node:${{ steps.set_tag.outputs.tag }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
build-args: SEMVER=${{ github.event.inputs.version }},GITCOMMIT=${{ github.event.inputs.gitcommit }},DATE=${{ github.event.inputs.GitDate }}
build-args: SEMVER=${{ github.event.inputs.version }},GITCOMMIT=${{ github.event.inputs.gitcommit }},GITDATE=${{ steps.get_date.outputs.gitDate }}
if: ${{ success() }}

- name: Build and Push NodePlugin Image
Expand Down

0 comments on commit 83c6311

Please sign in to comment.