Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Create new docker image using git tag

Signed-off-by: Mario Candela <[email protected]>
  • Loading branch information
mariocandela authored Sep 14, 2022
1 parent d6b9ef9 commit 7ec294c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Docker Hub Image

on:
push:
branches: [ "main" ]
tags:
- 'v*.*.*'

jobs:

Expand All @@ -19,7 +20,7 @@ jobs:
run: |
docker login -u $DOCKER_USER -p $DOCKER_ACCESS_TOKEN
- name: Build the Docker image
run: docker build . --file Dockerfile --tag m4r10/beelzebub:latest
run: docker build . --file Dockerfile --tag m4r10/beelzebub:${{ github.ref_name }}

- name: Docker Push
run: docker push m4r10/beelzebub:latest

0 comments on commit 7ec294c

Please sign in to comment.