v1.6.0-alpha.1 #88
Workflow file for this run
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: Docker Image CI | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| - | |
| name: Load .env file (BIOMERO_VERSION) | |
| uses: xom9ikk/dotenv@v2.3.0 | |
| - | |
| # Setting up Docker Buildx with docker-container driver is required | |
| # at the moment to be able to use a subdirectory with Git context | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - | |
| name: Login to DockerHub | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - | |
| name: Docker meta WEB | |
| id: meta-web | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/omeroweb | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| - | |
| name: Build and push WEB | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: "{{defaultContext}}" | |
| push: true | |
| file: ./web/Dockerfile | |
| tags: ${{ steps.meta-web.outputs.tags }} | |
| labels: ${{ steps.meta-web.outputs.labels }} | |
| build-args: | | |
| OMERO_BIOMERO_VERSION=${{ env.OMERO_BIOMERO_VERSION }} | |
| OMERO_FORMS_VERSION=${{ env.OMERO_FORMS_VERSION }} | |
| - | |
| name: Docker meta SERVER | |
| id: meta-server | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/omeroserver | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| - | |
| name: Build and push SERVER | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: "{{defaultContext}}" | |
| push: true | |
| file: ./server/Dockerfile | |
| tags: ${{ steps.meta-server.outputs.tags }} | |
| labels: ${{ steps.meta-server.outputs.labels }} | |
| build-args: | | |
| BIOMERO_VERSION=${{ env.BIOMERO_VERSION }} | |
| OMERO_ZARR_PIXEL_BUFFER_VERSION=${{ env.OMERO_ZARR_PIXEL_BUFFER_VERSION }} | |
| - | |
| name: Docker meta BIOMERO | |
| id: meta-biomero | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/biomero | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| - | |
| name: Build and push BIOMERO PROCESSOR | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: "{{defaultContext}}" | |
| push: true | |
| file: ./biomeroworker/Dockerfile | |
| tags: ${{ steps.meta-biomero.outputs.tags }} | |
| labels: ${{ steps.meta-biomero.outputs.labels }} | |
| build-args: | | |
| BIOMERO_VERSION=${{ env.BIOMERO_VERSION }} | |
| BIOMERO_IMPORTER_VERSION=${{ env.BIOMERO_IMPORTER_VERSION }} | |
| - | |
| name: Docker meta WORKER | |
| id: meta-worker | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/omeroworker | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| - | |
| name: Build and push WORKER | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: "{{defaultContext}}:worker" | |
| push: true | |
| tags: ${{ steps.meta-worker.outputs.tags }} | |
| labels: ${{ steps.meta-worker.outputs.labels }} | |