Skip to content

0.2.3 Fix password connection and add a pg_hba check #4

0.2.3 Fix password connection and add a pg_hba check

0.2.3 Fix password connection and add a pg_hba check #4

Workflow file for this run

name: release version
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
id: checkout
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies with poetry
run: |
sudo apt update
sudo apt install libpq-dev
pip install poetry
- name: Create package
shell: bash
run: |
sed -i "s/0.0.0/${{ github.event.release.tag_name }}/" dblinter/__init__.py
sed -i "s/0.0.0/${{ github.event.release.tag_name }}/" pyproject.toml
poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: decathlon/dblinter:${{ github.event.release.tag_name }},decathlon/dblinter:latest