Skip to content

Merge pull request #16 from startmunich/feature/search-content #7

Merge pull request #16 from startmunich/feature/search-content

Merge pull request #16 from startmunich/feature/search-content #7

name: NotionCrawler Build
on:
push:
branches: [main]
paths:
- "apps/notioncrawler/**"
- ".github/workflows/notioncrawler-build.yaml"
pull_request:
branches: [main]
paths:
- "apps/notioncrawler/**"
- ".github/workflows/notioncrawler-build.yaml"
env:
REGISTRY: ghcr.io
IMAGE_NAME: startmunich/notioncrawler
jobs:
push_to_registry:
name: Push Docker image to Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value={{branch}}
type=raw,value={{sha}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:apps/notioncrawler"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}