feat: update nmrium to version 0.64.0 (#271) #148
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This worklflow will perform following actions when the code is pushed to development branch: | |
| # - Run end to end test. | |
| # - Check Linting. | |
| # - Build the latest docker image in development which needs both e2e and lint to pass first. | |
| # - Push the latest docker image to Google Artifact Registry-Dev. | |
| # - Rollout the latest image in GKE. | |
| # | |
| # Maintainers: | |
| # - name: Nisha Sharma | |
| # - email: nisha.sharma@uni-jena.de | |
| name : Build and Deploy to Dev | |
| on: | |
| push: | |
| branches: [development] | |
| env: | |
| DEPLOYMENT_NAME: nmrxiv-nmrium | |
| DOCKER_HUB_USERNAME : ${{ secrets.DOCKER_HUB_USERNAME }} | |
| DOCKER_HUB_PASSWORD : ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| REPOSITORY_NAME: nmrium-react-wrapper | |
| REPOSITORY_NAMESPACE: nfdi4chem | |
| jobs: | |
| e2e: | |
| uses: NFDI4Chem/nmrium-react-wrapper/.github/workflows/e2e.yml@main | |
| lint: | |
| uses: NFDI4Chem/nmrium-react-wrapper/.github/workflows/nodejs.yml@main | |
| setup-build-publish-deploy-dev: | |
| name: Deploy to dev | |
| if: github.ref == 'refs/heads/development' | |
| runs-on: ubuntu-latest | |
| needs: [lint, e2e] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update version number | |
| run: | | |
| VERSION=${GITHUB_REF//*\/} | |
| echo "export default { version: '$VERSION' };" > src/versionInfo.ts | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
| with: | |
| username: ${{ env.DOCKER_HUB_USERNAME }} | |
| password: ${{ env.DOCKER_HUB_PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v4 | |
| with: | |
| context: . | |
| file: ./Dockerfile.prod | |
| push: true | |
| build-args: | | |
| RELEASE_VERSION=dev-latest | |
| tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:dev-latest | |
| username: ${{ env.DOCKER_HUB_USERNAME }} | |
| password: ${{ env.DOCKER_HUB_PASSWORD }} |