Skip to content

Commit

Permalink
ci: update release-please build
Browse files Browse the repository at this point in the history
Release please now build for multiple platforms

Update README.md
  • Loading branch information
dvdblk committed Jan 12, 2024
1 parent 063d4fd commit c971283
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/).

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c971283

Please sign in to comment.