mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 08:26:53 +00:00
CI(Release): Build image on push to main branch
Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -2,6 +2,7 @@ name: Create, publish container image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
tags: [ 'v*.*.*' ]
|
||||
|
||||
env:
|
||||
@@ -42,6 +43,12 @@ jobs:
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=schedule
|
||||
type=ref,event=branch
|
||||
type=ref,event=tag
|
||||
type=ref,event=pr
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
|
||||
Reference in New Issue
Block a user