rename qchat to gischat (#5) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "⚒️ Deploy image to GHCR" | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
push-store-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout GitHub Action | |
uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.3 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
virtualenvs-path: ~/.venv | |
installer-parallel: true | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.DOCKER_TOKEN}} | |
- name: Build Inventory Image | |
run: | | |
docker build . --tag ghcr.io/geotribu/gischat:$(poetry version -s) --tag ghcr.io/geotribu/gischat:latest | |
docker push ghcr.io/geotribu/gischat:$(poetry version -s) | |
docker push ghcr.io/geotribu/gischat:latest |