diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4750d19..08baebe 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -36,6 +36,12 @@ jobs: - name: Check out the repo uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: @@ -47,4 +53,5 @@ jobs: uses: docker/build-push-action@v5 with: push: true + platforms: linux/amd64,linux/arm64 tags: ghcr.io/${{ github.repository }}/app:${{ needs.release-please.outputs.version }},ghcr.io/${{ github.repository }}/app:latest diff --git a/README.md b/README.md index 0592021..aec42f9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Hack4Good - NLP for policy trend analysis (OECD) -[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](pyproject.toml) +[![Release](https://img.shields.io/github/v/release/dvdblk/hack4good-oecd)](https://github.com/dvdblk/hack4good-oecd/releases) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](.pre-commit-config.yaml) +[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](pyproject.toml) This project was created for the [Hack4Good 2023](https://www.analytics-club.org/hack4good) hackathon in collaboration with [OECD](https://www.oecd.org/switzerland/). @@ -73,7 +74,7 @@ python -m streamlit run app/main.py To **run** the latest docker image: ``` -docker run -p 8501:8501 --env-file .env ghcr.io/dvdblk/hack4good:latest +docker run -p 8501:8501 --env-file .env --volume $PWD/data:/app/app/data ghcr.io/dvdblk/hack4good-oecd/app:latest ``` (Optional) To **build** the docker image locally (after cloning the repo) and run it: