Skip to content

Build docker container for reporting #2

Build docker container for reporting

Build docker container for reporting #2

Workflow file for this run

name: Build docker container for reporting
on:
workflow_call:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: lehtiolab/ddamsproteomics
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Login to ghcr
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup docker buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata for container
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=match,pattern=release-(.*),group=1
- name: Build and push container to registry
uses: docker/build-push-action@v6
with:
push: true
context: ./assets
file: ./assets/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}