Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Fix incorrect merging operation #31

Fix incorrect merging operation

Fix incorrect merging operation #31

name: Publish Docker image
on:
push:
tags:
- "v*.*.*"
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@5f4866a30a54f16a52d2ecb4a3898e9e424939cf
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Install pcregrep
run: sudo apt install -y pcregrep
- name: Get Pygin version
id: meta
run: |
echo "version=$(pcregrep -o1 "version: str = \"(.*)\"" src/meta/agent.py)" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@090ca155fc9b214cbcac536c450455a0e96f52c6
with:
context: .
file: ./Dockerfile
push: true
tags: unrdeaddrop/pygin:${{ steps.meta.outputs.version }}