Sign inSign up

joeu128/testgitworkflow

By joeu128

Updated 4 days ago

short Description

Image
0

5.6K

joeu128/testgitworkflow repository overview

Git Workflows

Push Docker

Last Release

Prerequisites

  • Create a Secret PAT with your Personal Access Token
  • with Docker

Adjusting Workflow-Files

Adjusting renovate-config

  • add label, gitIgnoredAuthors and github-Group
    "gitIgnoredAuthors": [
      "41898282+github-actions[bot]@users.noreply.github.com"
    ],
    "packageRules": [
      {
        "matchFileNames": [
          ".github/**"
        ],
        "groupName": "github-actions"
      }
    ],
    "labels": [
      "renovate"
    ]
    
validate reconfiguration
  • install nodeJs via nvm
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    nvm list-remote
    ...
            v22.8.0
    ->      v22.9.0
    nvm install v22.9.0
    
  • install renovate and validate config
    npm i -g renovate
    renovate-config-validator --strict
    or 
    npx --yes --package renovate -- renovate-config-validator --strict
    

ShowCases

updateDocInREADME.yml in Action

  • The following Content comes from File updateDocInREADME.yml

Begin of replaced Markdown-Content from MarkdownDocContentForReadme.md

  • Add another List-Item into Replaced Content to fix Alignment
    This Content in Readme should be the same as in File "MarkdownDocContentForReadme.md"
      
    
    It will only be replaced if this File is changed and merged via PR
  • Just another List-Item from Content-File

End of replaced Markdown-Content from MarkdownDocContentForReadme.md

Begin of replaced Content, generated from PlainDocContentForReadme.txt

  • Generated List-Item with quotted String
    ./DOIT.sh -h
    Doc for Shell-Doit
      -d  --debug       Debug Script'
      -f  --fancy       Fancy Feature'
    

End of replaced Content, generated from PlainDocContentForReadme.txt

  • Initially this Snippet must be committed
    <!-- searchstring_start -->
    
    Initially here has to be any Char, also a "new Line" will be found
    
    <!-- searchstring_end -->
    

Tipps

initalize a fresh CHANGELOG.md

  • add a compare Link
    [Unreleased]: https://github.com/joe128/<repo>/compare/<firstCommit>...HEAD
    
  • or if there are problems Could not infer the compare link
    docker pull rcmachado/changelog
    alias changelogtool='docker run --rm -it -v "$(pwd)":/src docker.io/rcmachado/changelog:latest'
    changelogtool -f /src/CHANGELOG.md init -c https://github.com/joe128/<repo>/compare/<firstCommit>...HEAD -o /src/CHANGELOG.md
    

use local python-package

  • add +local to your version
  • create local package poetry build
  • pip install with full-path python3 -m pip install /home/../src/<project>/dist/project-1.0.0+local-py3-none-any.whl
  • update your dependency to project-1.0.0+local

enable Github-Action - Debug

Tag summary

Content type

Image

Digest

sha256:46844afff

Size

44.3 MB

Last updated

4 days ago

docker pull joeu128/testgitworkflow