11
2- # This worklflow will perform following actions when the code is pushed to development branch:
2+ # This worklflow will perform following actions when the code is pushed to the development branch:
33# - Build the latest docker image in development which needs test to pass first.
44# - Push the docker image to Docker Hub under namespace - nfdi4chem with tag:dev-latest.
55#
1616env :
1717 DOCKER_HUB_USERNAME : ${{ secrets.DOCKER_USERNAME }}
1818 DOCKER_HUB_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
19- REPOSITORY_NAME : nmrkit
19+ NMRKIT_REPOSITORY_NAME : nmrkit
20+ NMR_CLI_REPOSITORY_NAME : nmr-cli
2021 REPOSITORY_NAMESPACE : nfdi4chem
2122 RELEASE_TAG : dev-latest
2223
2728 push_to_registry :
2829 name : Push Docker image to Docker Hub
2930 runs-on : ubuntu-latest
30- needs : test_and_lint
31+ # needs: test_and_lint
3132 steps :
3233 - name : Check out the repo
3334 uses : actions/checkout@v3
@@ -38,14 +39,26 @@ jobs:
3839 username : ${{ env.DOCKER_HUB_USERNAME }}
3940 password : ${{ env.DOCKER_HUB_PASSWORD }}
4041
41- - name : Build and push Docker image
42+ - name : Build and push nmrKit Docker image
4243 uses : docker/build-push-action@v4
4344 with :
4445 context : .
4546 file : ./Dockerfile
4647 push : true
4748 build-args : |
4849 RELEASE_VERSION=dev-latest
49- tags : ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
50+ tags : ${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMRKIT_REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
51+ username : ${{ env.DOCKER_HUB_USERNAME }}
52+ password : ${{ env.DOCKER_HUB_PASSWORD }}
53+
54+ - name : Build and push nmr-cli Docker image
55+ uses : docker/build-push-action@v4
56+ with :
57+ context : ./app/scripts/nmr-cli/
58+ file : ./app/scripts/nmr-cli/Dockerfile
59+ push : true
60+ build-args : |
61+ RELEASE_VERSION=dev-latest
62+ tags : ${{ env.REPOSITORY_NAMESPACE }}/${{ env.NMR_CLI_REPOSITORY_NAME }}:${{ env.RELEASE_TAG }}
5063 username : ${{ env.DOCKER_HUB_USERNAME }}
5164 password : ${{ env.DOCKER_HUB_PASSWORD }}
0 commit comments