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

Bump the minor group across 1 directory with 15 updates #2334

Bump the minor group across 1 directory with 15 updates

Bump the minor group across 1 directory with 15 updates #2334

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/checkout@v4.1.4
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/login-action@v3.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.IMAGE_REPOSITORY }}
tags: |
type=ref,event=tag
type=raw,value=latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
- name: Build Image
uses: docker/build-push-action@v5.3.0
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