From acacfd75311ece7f5baf84a4869e2cabd5f36d02 Mon Sep 17 00:00:00 2001 From: Hugues Chocart Date: Sat, 6 Apr 2024 10:02:56 -0300 Subject: [PATCH] chore: auto build images on new release (#178) --- .github/workflows/build-push-deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-push-deploy.yml b/.github/workflows/build-push-deploy.yml index 8167e803..bef28765 100644 --- a/.github/workflows/build-push-deploy.yml +++ b/.github/workflows/build-push-deploy.yml @@ -4,6 +4,8 @@ on: push: branches: - main + release: + types: [published] jobs: build-and-push: @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: