Skip to content

Commit

Permalink
#Issue KN-933 fix: Updated the docker image name
Browse files Browse the repository at this point in the history
  • Loading branch information
aimansharief committed Sep 19, 2023
1 parent b29e55b commit 612e42d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/search-api-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
cd search-api/
sh knowlg-docker-image.sh ${{ github.ref_name }}
docker images
docker tag search-service:${{ github.ref_name }} ${{ vars.DOCKERHUB_USERNAME }}/search-service:${{ github.ref_name }}
docker push ${{ vars.DOCKERHUB_USERNAME }}/search-service:${{ github.ref_name }}
docker tag knowlg-search:${{ github.ref_name }} ${{ vars.DOCKERHUB_USERNAME }}/knowlg-search:${{ github.ref_name }}
docker push ${{ vars.DOCKERHUB_USERNAME }}/knowlg-search:${{ github.ref_name }}
- name: Store Maven dependencies cache
uses: actions/cache@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/search-job-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
run: |
cd search-job/
mvn clean install -DskipTests
docker build -t ${{ vars.DOCKERHUB_USERNAME }}/search-indexer:${{ github.ref_name }} .
docker build -t ${{ vars.DOCKERHUB_USERNAME }}/knowlg-search-job:${{ github.ref_name }} .
docker images
docker push ${{ vars.DOCKERHUB_USERNAME }}/search-indexer:${{ github.ref_name }}
docker push ${{ vars.DOCKERHUB_USERNAME }}/knowlg-search-job:${{ github.ref_name }}
unit-tests:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN unzip /home/sunbird/search-service-1.0-SNAPSHOT.zip -d /home/sunbird/
RUN rm /home/sunbird/search-service-1.0-SNAPSHOT.zip
COPY --chown=sunbird ./schemas /home/sunbird/search-service-1.0-SNAPSHOT/schemas
WORKDIR /home/sunbird/
CMD java -XX:+PrintFlagsFinal $JAVA_OPTIONS -cp '/home/sunbird/search-service-1.0-SNAPSHOT/lib/*' -Dconfig.file=/home/sunbird/search-service-1.0-SNAPSHOT/config/application.conf -Dlogger.file=/home/sunbird/search-service-1.0-SNAPSHOT/config/logback.xml play.core.server.ProdServerStart /home/sunbird/search-service-1.0-SNAPSHOT
CMD java -XX:+PrintFlagsFinal $JAVA_OPTIONS -cp '/home/sunbird/search-service-1.0-SNAPSHOT/lib/*' -Dconfig.file=/home/sunbird/search-service-1.0-SNAPSHOT/conf/application.conf -Dlogger.file=/home/sunbird/search-service-1.0-SNAPSHOT/conf/logback.xml play.core.server.ProdServerStart /home/sunbird/search-service-1.0-SNAPSHOT/bin
File renamed without changes.
4 changes: 2 additions & 2 deletions search-api/knowlg-docker-image.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
TAG=$1

docker rmi $(docker images -a | grep search-service | awk '{print $1":"$2}')
docker rmi $(docker images -a | grep knowlg-search | awk '{print $1":"$2}')

cd knowlg-search
sbt dist
cd ../
docker build -f build/search-service/Dockerfile -t search-service:${TAG} .
docker build -f build/knowlg-search/Dockerfile -t knowlg-search:${TAG} .

0 comments on commit 612e42d

Please sign in to comment.