Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Bump opencv from 0.88.8 to 0.91.1 in /backend #2242

Bump opencv from 0.88.8 to 0.91.1 in /backend

Bump opencv from 0.88.8 to 0.91.1 in /backend #2242

Workflow file for this run

name: Container
on:
push:
pull_request:
jobs:
build:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
target:
- chimp_chomp
- chimp_controller
- compound_library
- compound_soaking
- crystal_library
- pin_packing
- soakdb_sync
- targeting
max-parallel: 1
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout with LFS
uses: actions/[email protected]
with:
lfs: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
- name: Generate Image Name
run: echo IMAGE_REPOSITORY=ghcr.io/$(echo "${{ github.repository }}-${{ matrix.target }}" | tr '[:upper:]' '[:lower:]' | tr '[_]' '[\-]') >> $GITHUB_ENV
- name: Log in to GitHub Docker Registry
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ env.IMAGE_REPOSITORY }}
tags: |
type=ref,event=tag
type=raw,value=latest
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build Image
uses: docker/[email protected]
with:
context: backend/
target: ${{ matrix.target }}
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max