Skip to content

this should help with matplotlib issue raised by Guillaume #17

this should help with matplotlib issue raised by Guillaume

this should help with matplotlib issue raised by Guillaume #17

name: Conda Runner, main branch
on:
workflow_dispatch:
push:
branches:
- main
- '**staging'
paths:
- 'runners/conda-dockerfile'
- 'runners/r-environment.yml'
- 'runners/python-environment.yml'
- 'runners/.condarc'
jobs:
runner-conda:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
if: github.ref == 'refs/heads/main'
id: metadata-main
uses: docker/metadata-action@v4
with:
images: geobon/bon-in-a-box
tags: |
# Image used in compose file
type=raw,value=runner-conda
# In case we want to replicate a specific legacy setup
type=sha,prefix=runner-conda-
- name: Extract metadata (tags, labels) for Docker, staging branch
if: github.ref != 'refs/heads/main'
id: metadata-staging
uses: docker/metadata-action@v4
with:
images: geobon/bon-in-a-box
tags: |
# Image used in compose file
type=raw,value=runner-conda-${{github.ref_name}}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: runners
file: runners/conda-dockerfile
push: true
tags: ${{ steps.metadata-main.outputs.tags || steps.metadata-staging.outputs.tags }}
labels: ${{ steps.metadata-main.outputs.labels || steps.metadata-staging.outputs.labels }}