Skip to content

Fix docker builds, sanitise fasta headers, traveler update #80

Fix docker builds, sanitise fasta headers, traveler update

Fix docker builds, sanitise fasta headers, traveler update #80

Workflow file for this run

name: Build and Push Base Docker image
on:
pull_request:
paths:
- 'base_image/**'
- '.github/workflows/base-image.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker Meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: rnacentral/r2dt-base
flavor: latest=false
tags: |
type=ref,event=pr
- name: Calculate Dockerfile hash
id: dockerfile_hash
run: echo "hash=$(sha256sum base_image/Dockerfile | cut -d' ' -f1)" >> $GITHUB_OUTPUT
- name: Build and push Docker image
id: build
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
labels: ${{ steps.docker_meta.outputs.labels }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=registry,ref=rnacentral/r2dt-base:cache-${{ steps.dockerfile_hash.outputs.hash }}
cache-to: type=registry,ref=rnacentral/r2dt-base:cache-${{ steps.dockerfile_hash.outputs.hash }},mode=max
file: base_image/Dockerfile
context: base_image/