3dmol viewer [NOT TO BE MERGED] #901
This file contains 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
# Workflow to tools containers | ||
--- | ||
name: tools | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
- "staging" | ||
# Pattern matched against refs/tags | ||
tags: | ||
- '**' | ||
paths: | ||
- 'models/**' | ||
- '.github/workflows/tools.yml' | ||
- '.github/workflows/docker.yml' | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "staging" | ||
paths: | ||
- 'models/**' | ||
- '.github/workflows/tools.yml' | ||
- '.github/workflows/docker.yml' | ||
# Only run one at a time | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
################ TOOLS CONTAINER BUILDS ########################### | ||
changes-tools: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
tools: ${{ steps.filter.outputs.changes }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
# Only run when tool's directory or workflow files have changed | ||
############################################################### | ||
################## Add new tools here ######################### | ||
############################################################### | ||
# filters: | | ||
# colabdesign: | ||
# - 'models/colabdesign/**' | ||
# - '.github/workflows/tools.yml' | ||
# - '.github/workflows/docker.yml' | ||
# labsay: | ||
# - 'models/labsay/**' | ||
# - '.github/workflows/tools.yml' | ||
# - '.github/workflows/docker.yml' | ||
tools: | ||
needs: changes-tools | ||
if: ${{ needs.changes-tools.outputs.tools != '' && toJson(fromJson(needs.changes-tools.outputs.tools)) != '[]' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tools: "${{ fromJSON(needs.changes-tools.outputs.tools) }}" | ||
uses: ./.github/workflows/docker.yml | ||
with: | ||
name: ${{ matrix.tools }} | ||
context: tools/${{ matrix.tools }} | ||
run-disk-space-cleanup: true | ||
secrets: inherit |