Skip to content

use Perl-compatible regex #5

use Perl-compatible regex

use Perl-compatible regex #5

Workflow file for this run

name: Publish (Testing)
on:
push:
branches:
- 14-build-add-github-action-for-pushing-to-docker-hub
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract version for tagging
id: version
run: echo "version=$(grep -m 1 version pyproject.toml | grep -P '\d.\d.\d' -o)" >> $GITHUB_OUTPUT
- name: Test extract version
id: test_extract_version
run: echo "${{ steps.version.outputs.version }}"