Skip to content

docs(ingest): refactor docstrings with detailed README #13

docs(ingest): refactor docstrings with detailed README

docs(ingest): refactor docstrings with detailed README #13

name: ingest-service-image
on:
push:
branches:
- main
paths:
- ingest-service/**
- .github/workflows/ingest-service-image.yml
pull_request:
paths:
- ingest-service/**
- .github/workflows/ingest-service-image.yml
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: ingest-service-image-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/apicortex-ingest-service
tags: |
type=ref,event=branch
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/build-push-action@v6
with:
context: ./ingest-service
file: ./ingest-service/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max