From 4d12770bc17a21d85f983cc032ba0a9f2eb05dca Mon Sep 17 00:00:00 2001 From: avouacr Date: Wed, 8 May 2024 12:30:54 +0000 Subject: [PATCH] build only on tags and dispatch --- .github/workflows/{build-image-api.yml => build-api.yml} | 2 ++ .gitignore | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) rename .github/workflows/{build-image-api.yml => build-api.yml} (88%) diff --git a/.github/workflows/build-image-api.yml b/.github/workflows/build-api.yml similarity index 88% rename from .github/workflows/build-image-api.yml rename to .github/workflows/build-api.yml index c15aa87..144e3a5 100644 --- a/.github/workflows/build-image-api.yml +++ b/.github/workflows/build-api.yml @@ -22,6 +22,8 @@ jobs: with: images: inseefrlab/llm-open-data-insee tags: | + # set latest tag for main branch + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} # propagate valid semver tags type=semver,pattern={{raw}} diff --git a/.gitignore b/.gitignore index 3a0ff1e..8836338 100644 --- a/.gitignore +++ b/.gitignore @@ -160,6 +160,6 @@ cython_debug/ #.idea/ # Temporary Databe - from parquet file -data/data_complete.csv -data/chroma_db -logs/ +**/data_complete.csv +**/chroma_db +**/logs/