Skip to content

Commit

Permalink
chore: auto build images on new release (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Apr 6, 2024
1 parent 544da19 commit acacfd7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
release:
types: [published]

jobs:
build-and-push:
Expand Down Expand Up @@ -41,6 +43,7 @@ jobs:
tags: |
lunary/backend:latest
lunary/backend:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
lunary/backend:${{ github.event.release.tag_name }}
platforms: linux/amd64

- name: Build and push frontend
Expand All @@ -52,6 +55,7 @@ jobs:
tags: |
lunary/frontend:latest
lunary/frontend:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
lunary/frontend:${{ github.event.release.tag_name }}
platforms: linux/amd64

- name: Build and push radar
Expand All @@ -63,6 +67,7 @@ jobs:
tags: |
lunary/radar:latest
lunary/radar:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
lunary/radar:${{ github.event.release.tag_name }}
platforms: linux/amd64

- name: Build and push ml
Expand All @@ -74,6 +79,7 @@ jobs:
tags: |
lunary/ml:latest
lunary/ml:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
lunary/ml:${{ github.event.release.tag_name }}
platforms: linux/amd64

- name: Build and push Monolith
Expand All @@ -85,6 +91,7 @@ jobs:
tags: |
lunary/lunary-ee:latest
lunary/lunary-ee:rev-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.hash }}
lunary/lunary-ee:${{ github.event.release.tag_name }}
platforms: linux/amd64

deploy:
Expand Down

0 comments on commit acacfd7

Please sign in to comment.