@@ -46,10 +46,39 @@ jobs:
4646 - name : Build binaries for multiple platforms
4747 run : |
4848 go mod download
49-
49+
5050 # Build for Linux (amd64)
5151 GOOS=linux GOARCH=amd64 go build -o notificator-linux-amd64 .
52-
52+
53+ - name : Set up Docker Buildx
54+ uses : docker/setup-buildx-action@v3
55+
56+ - name : Login to Docker Hub
57+ uses : docker/login-action@v3
58+ with :
59+ username : soulkyu
60+ password : ${{ secrets.DOCKERHUB_TOKEN }}
61+
62+ - name : Build and push Docker images
63+ run : |
64+ VERSION="${{ steps.version.outputs.version }}"
65+
66+ # Build and push WebUI image
67+ docker build -t soulkyu/notificator-webui:${VERSION} -t soulkyu/notificator-webui:latest -f Dockerfile.webui .
68+ docker push soulkyu/notificator-webui:${VERSION}
69+ docker push soulkyu/notificator-webui:latest
70+
71+ # Build and push Backend image
72+ docker build -t soulkyu/notificator-backend:${VERSION} -t soulkyu/notificator-backend:latest -f Dockerfile.backend .
73+ docker push soulkyu/notificator-backend:${VERSION}
74+ docker push soulkyu/notificator-backend:latest
75+
76+ # Build and push Alertmanager image
77+ cd alertmanager/fake
78+ docker build -t soulkyu/notificator-alertmanager:${VERSION} -t soulkyu/notificator-alertmanager:latest -f Dockerfile .
79+ docker push soulkyu/notificator-alertmanager:${VERSION}
80+ docker push soulkyu/notificator-alertmanager:latest
81+
5382 - name : Create and push tag
5483 run : |
5584 git config --local user.email "action@github.com"
7099 body : |
71100 ## Changes
72101 - Built from commit: ${{ github.sha }}
73- - Automatic release triggered by push to master
74-
102+ - Automatic release triggered by push to main
103+
104+ ## Docker Images
105+ Docker images are available on Docker Hub with this version tag:
106+ - `soulkyu/notificator-webui:${{ steps.version.outputs.version }}`
107+ - `soulkyu/notificator-backend:${{ steps.version.outputs.version }}`
108+ - `soulkyu/notificator-alertmanager:${{ steps.version.outputs.version }}`
109+
110+ Also tagged as `:latest` for convenience.
111+
75112 ## Binaries
76113 Multiple platform binaries are attached to this release:
77114 - `notificator-linux-amd64` - Linux x86_64
0 commit comments