Added Dask loading of files to Live Viewer backend #187
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
# Copyright (C) 2023 ISIS Rutherford Appleton Laboratory UKRI | |
# SPDX - License - Identifier: GPL-3.0-or-later | |
# This workflow uses actions that are not certified by GitHub. | |
# This workflow creates and publishes Docker images to GitHub Container Registry (GHCR) for Ubuntu 18 and Centos 7 | |
# This Workflow is triggered when a main branch is pushed to or a pull request is merged to main if the pull request has the label 'rebuild_docker'. | |
name: Build & Publish Docker Ubuntu18 & CentOS7 | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: ['docker/**', 'Dockerfile', 'conda/**', 'Makefile', 'setup.py', 'environment.yml', 'environment-dev.yml'] | |
pull_request: | |
branches: | |
- 'main' | |
types: [ labeled ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build-and-push-image: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'rebuild_docker 🐋') || github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
contents: read | |
packages: write | |
deployments: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Build and push Ubuntu Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./docker/ubuntu18.Dockerfile | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ubuntu18 | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Build and push Rocky8 Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./docker/rocky8.Dockerfile | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:rocky8 | |
labels: ${{ steps.meta.outputs.labels }} |