Skip to content

Commit

Permalink
fix: fetch release tag while build
Browse files Browse the repository at this point in the history
  • Loading branch information
NishaSharma14 committed Mar 21, 2023
1 parent 8537b83 commit 0727dfc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,23 @@ jobs:
- run: |-
gcloud auth configure-docker europe-west3-docker.pkg.dev
#Fetch latest release
- name: Fetch latest release
id: fetch-latest-release
uses: InsonusK/get-latest-release@v1.0.1
with:
myToken: ${{ github.token }}
exclude_types: "draft|prerelease"
view_top: 10
- name: "Print release name"
run: |
echo "tag_name: ${{ steps.fetch-latest-release.outputs.tag_name }}"
# Build the Docker image
- name: Build App Image
run: |-
docker build \
--build-arg RELEASE_VERSION=${{ steps.fetch-latest-release.outputs.tag_name }}
--tag "europe-west3-docker.pkg.dev/$PROJECT_ID/$REPOSITORY_NAME/$APP_IMAGE:latest" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
Expand Down

0 comments on commit 0727dfc

Please sign in to comment.