Skip to content

Commit bd90dba

Browse files
committed
docker publish
1 parent aebde14 commit bd90dba

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build test-unit run clean keygen test-service test-repo test-http dev coverage docker-build docker-run docker-stop docker-clean docker-logs docker-compose-up docker-compose-down docker-compose-build
1+
.PHONY: build test-unit run clean keygen test-service test-repo test-http dev coverage docker-build docker-run docker-stop docker-clean docker-logs docker-publish docker-compose-up docker-compose-down docker-compose-build
22

33
build:
44
go build -o bin/server ./cmd/api
@@ -69,6 +69,11 @@ docker-logs:
6969
@echo "Showing Docker container logs..."
7070
docker logs -f notifuse
7171

72+
docker-publish:
73+
@echo "Building and publishing Docker image to Docker Hub..."
74+
docker build -t notifuse/notifuse:latest .
75+
docker push notifuse/notifuse:latest
76+
7277
# Docker compose commands
7378
docker-compose-up:
7479
@echo "Starting services with Docker Compose..."

TODO.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# TODO
22

3-
- docs: email providers, templates, contacts, lists, workspaces, broadcast campaigns, transactional api, notification center
3+
- docs: email providers
4+
- docker hub publish image
45

56
## Eventual features
67

config/config.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"github.com/spf13/viper"
1111
)
1212

13+
const VERSION = "3.1"
14+
1315
type Config struct {
1416
Server ServerConfig
1517
Database DatabaseConfig
@@ -139,7 +141,7 @@ func LoadWithOptions(opts LoadOptions) (*Config, error) {
139141
v.SetDefault("DB_SSLMODE", "require")
140142
v.SetDefault("ENVIRONMENT", "production")
141143
v.SetDefault("LOG_LEVEL", "info")
142-
v.SetDefault("VERSION", "3.1")
144+
v.SetDefault("VERSION", VERSION)
143145

144146
// SMTP defaults
145147
v.SetDefault("SMTP_PORT", 587)

0 commit comments

Comments
 (0)