Skip to content

feat: add ripgrep and fd installation to Dockerfile for enhanced file… #6

feat: add ripgrep and fd installation to Dockerfile for enhanced file…

feat: add ripgrep and fd installation to Dockerfile for enhanced file… #6

name: Build And Publish Container
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "container/**"
permissions:
packages: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./container
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository_owner }}/cairn-worker-container:latest
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/cairn-worker-container:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/cairn-worker-container:buildcache,mode=max