Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiKumarRay authored Mar 10, 2022
1 parent 18db623 commit 63617c6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Docker Image CI
name: Docker Build & Publish

on:
push:

release:
types: [published]

tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,7 +19,7 @@ jobs:
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -27,4 +30,4 @@ jobs:
context: .
file: ./docker/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/kglab:latest
tags: ${{ secrets.DOCKER_USERNAME }}/kglab:${{ github.ref_name }}

0 comments on commit 63617c6

Please sign in to comment.