docker #1462
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: | |
| push: | |
| branches: | |
| - master | |
| repository_dispatch: | |
| types: [docker] | |
| jobs: | |
| generate: | |
| name: Build Docker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4.2.2 | |
| - name: Trigger RDiscvr Docker | |
| # NOTE: rely on the source of this event to also trigger RDiscvr | |
| if: github.event_name != 'repository_dispatch' | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| repository: bimberlabinternal/Rdiscvr | |
| event-type: docker | |
| - name: Docker meta | |
| id: docker_meta | |
| uses: docker/metadata-action@v5.6.1 | |
| with: | |
| images: ghcr.io/bimberlab/rira | |
| tags: | | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=sha | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3.2.0 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3.7.1 | |
| - name: Login to GitHub Container Registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v3.3.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.PAT }} | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| docker-images: false | |
| - name: Build and push | |
| id: docker_build | |
| uses: docker/build-push-action@v6.10.0 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| build-args: | | |
| "GH_PAT=${{ secrets.PAT }}" | |
| pull: true | |
| push: ${{github.ref == 'refs/heads/master'}} | |
| tags: ghcr.io/bimberlab/rira:nightly,ghcr.io/bimberlab/rira:latest | |
| labels: | | |
| ${{ steps.docker_meta.outputs.labels }} | |
| org.opencontainers.image.title=rira | |
| org.opencontainers.image.description=RIRA is an R package for interpreting single-cell RNA-seq data, developed and maintained by the Bimber Lab. | |