Skip to content

Commit

Permalink
Merge pull request #285 from Steinbeck-Lab/dev-nisha
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Kohulan authored Jul 19, 2023
2 parents d4e7d28 + 6a321b4 commit 10ba878
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch: {}
push:
branches:
- development
- main
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3

#Fetch Latest release
- name: Fetch latest release
id: fetch-latest-release
uses: InsonusK/get-latest-release@v1.0.1
Expand All @@ -39,18 +40,22 @@ jobs:
run: |
echo "tag_name: ${{ steps.fetch-latest-release.outputs.tag_name }}"
#Login to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ env.DOCKER_HUB_USERNAME }}
password: ${{ env.DOCKER_HUB_PASSWORD }}


#Build and push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
build-args: |
RELEASE_VERSION=${{ steps.fetch-latest-release.outputs.tag_name }}
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:${{ steps.fetch-latest-release.outputs.tag_name }}
username: ${{ env.DOCKER_HUB_USERNAME }}
password: ${{ env.DOCKER_HUB_PASSWORD }}

0 comments on commit 10ba878

Please sign in to comment.