Skip to content

Github action that provides the semver version of the repository based on gogitver.

License

Notifications You must be signed in to change notification settings

estein9825/gogitver-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gogitver Action

Action Go Report Card

This action wraps gogitver. It will output the version of the repository as determined by the git history. This makes version information available to other steps, like a docker build and push.

Example:

Using gogitver for a github release and docker release:

name: build
on: [push]
jobs:
  release:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps: 
      - uses: syncromatics/gogitver-action@v0.0.1
        id: gogitver

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ steps.gogitver.outputs.version }}
          release_name: Release ${{ steps.gogitver.outputs.version }}
          draft: false
          prerelease: false

      - uses: actions/checkout@v1

      - name: Ship the Docker image
        run: make ship
        env:
          VERSION: ${{ steps.gogitver.outputs.version }}
          DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Github action that provides the semver version of the repository based on gogitver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 73.1%
  • Dockerfile 16.9%
  • Makefile 10.0%