Build Docker #1457
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: Build Docker | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 4 * * *" | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| generate: | |
| name: Build Docker | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/[email protected] | |
| - name: Docker meta | |
| id: docker_meta | |
| uses: docker/[email protected] | |
| with: | |
| images: ghcr.io/bimberlab/nimble | |
| tags: | | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=sha | |
| - name: Set up QEMU | |
| uses: docker/[email protected] | |
| - name: Set up Docker Buildx | |
| uses: docker/[email protected] | |
| - name: Login to GitHub Container Registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/[email protected] | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.PAT }} | |
| - name: Build and push | |
| id: docker_build | |
| uses: docker/[email protected] | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| pull: true | |
| push: true | |
| tags: ghcr.io/bimberlab/nimble:nightly,ghcr.io/bimberlab/nimble:latest | |
| labels: | | |
| ${{ steps.docker_meta.outputs.labels }} | |
| org.opencontainers.image.title=nimble | |
| org.opencontainers.image.description=nimble is a fast, accurate, and configurable bulk RNA sequence aligner that executes lightweight alignments on arbitrary reference libraries, developed and maintained by the Bimber Lab. |