Skip to content

cytopia/docker-tag-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Docker tag action

Usage

on: [push]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:

      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Set Docker tag
        id: tag
        uses: cytopia/docker-tags@v1

      - name: build
        run: |
          docker build -t image_name:${{ steps.tag.outputs.docker-tag }} .

      - name: push
        run: |
          docker push image_name:${{ steps.tag.outputs.docker-tag }}

About

GitHub Action to create Docker tag based on git branch or git tag

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •