This repository has been archived by the owner on May 14, 2024. It is now read-only.
Fix agent_id being included in final config #33
Workflow file for this run
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: 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 }} |