Add diagnostics tools to cryosparc (#509) #15
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
| name: Release Docker | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - docker-images/** | |
| - .github/workflows/release_docker.yaml | |
| jobs: | |
| release-docker: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: | |
| - dcgm-exporter | |
| - mariadb | |
| - postgresql | |
| - nominatim | |
| - postgresql-nominatim | |
| - cryosparc | |
| name: Release ${{ matrix.image }} Docker image | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Login to DockerHub | |
| if: matrix.image != 'dcgm-exporter' | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: docker-registry.osc.edu | |
| username: ${{ secrets.OSC_REGISTRY_ROBOT_WEBSERVICES_USERNAME }} | |
| password: ${{ secrets.OSC_REGISTRY_ROBOT_WEBSERVICES_TOKEN }} | |
| - name: Login to DockerHub | |
| if: ${{ matrix.image == 'dcgm-exporter' || matrix.image == 'cryosparc' }} | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: docker-registry.osc.edu | |
| username: ${{ secrets.OSC_REGISTRY_ROBOT_OSC_USERNAME }} | |
| password: ${{ secrets.OSC_REGISTRY_ROBOT_OSC_TOKEN }} | |
| - name: Set Image Specific Variables | |
| run: | | |
| if [ "${{ matrix.image }}" == "cryosparc" ]; then | |
| echo "LICENSE_ID=${{ secrets.CRYOSPARC_LICENSE_ID }}" >> $GITHUB_ENV | |
| fi | |
| - name: Build and Push ${{ matrix.image }} image | |
| run: | | |
| make -f docker-images/${{ matrix.image }}/Makefile build | |
| make -f docker-images/${{ matrix.image }}/Makefile push |