Skip to content

Commit

Permalink
change cron on docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
davidheineman committed Aug 13, 2024
1 parent fefb2d0 commit d79cb00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Deploy to ghcr.io/davidheineman/acl-search:main

on:
schedule:
- cron: '41 6 * * *'
- cron: '20 4 * * 0' # Build once a week
push:
branches: [ "main" ]
# Publish semver tags as releases.
Expand All @@ -16,15 +13,12 @@ on:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io # or docker.io
IMAGE_NAME: ${{ github.repository }} # davidheineman/acl-search


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ python index.py
```sh
docker-compose build --no-cache
docker-compose up --build
# docker pull ghcr.io/davidheineman/acl-search:main
```

## Example notebooks
Expand Down Expand Up @@ -84,7 +85,8 @@ To see an example of search, visit:
- Include the title in the indexing
- (First seperate github and HF, then deploy as a container app)
- Build using GitHub Actions, then deploy the built container on Google Cloud
- This way, I can trigger builds directly in GitHub
- Deploy: https://console.cloud.google.com/run/create?enableapi=true&hl=en&project=light-lambda-256623
- https://docs.docker.com/language/python/configure-ci-cd/
Expand All @@ -94,12 +96,12 @@ To see an example of search, visit:
- Put query in URL (?q=XXX)
- Make indexing much easier
- Make indexing code better
(currently, the setup involves manually copying the CPP files becuase there is a silent failure, this also should be possible to do on Google Collab, or even MPS)
- Make index save in parent folder
- Fix "sanity check" in index.py
- Make it possible to do a one-click re-indexing as a GitHub action (potentially when building the container? Or re-build the container when HF is updated)
- Profile bibtexparser.load(f) (why so slow)
- Ship as a containerized service
- Scrape:
- https://proceedings.neurips.cc/
- https://dblp.uni-trier.de/db/conf/iclr/index.html
Expand Down

0 comments on commit d79cb00

Please sign in to comment.