Skip to content

ajinkya6/get-release-or-tag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get release name or commit id

A simple action to help release docker images in a dev/prod pipeline. It will return the release name ($GITHUB_REF without refs/tags/) if the action is release otherwise it will return $GITHUB_SHA

Ex:

name: Publish
on: [pull_request, release]
jobs:
  build_docker_image:
    name: Flyway
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: tenhaus/get-release-or-tag@v2
        id: tag

      - name: Build
        run: docker build src/flyway -t your.docker.repo/flyway:${{ steps.tag.outputs.tag }}

      - name: Push
        run: docker push your.docker.repo/flyway:${{ steps.tag.outputs.tag }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 77.5%
  • Dockerfile 22.5%