Updated tagging
This commit is contained in:
6
Makefile
6
Makefile
@@ -13,7 +13,11 @@ help: ## This info
|
||||
@echo
|
||||
|
||||
build: ## Build Docker containers
|
||||
export TAG=${GIT_HASH} && docker compose build
|
||||
docker compose build
|
||||
|
||||
tag: ## Tag Docker images
|
||||
docker tag aviation-ui:latest aviation-ui:${GIT_HASH}
|
||||
docker tag aviation-service:latest aviation-service:${GIT_HASH}
|
||||
|
||||
up: ## Start Docker containers
|
||||
docker compose up -d
|
||||
|
||||
@@ -57,8 +57,6 @@ services:
|
||||
- "${SERVICE_PORT:-5000}:5000"
|
||||
build:
|
||||
context: service
|
||||
tags:
|
||||
- aviation-service:${TAG:-latest}
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
@@ -78,8 +76,6 @@ services:
|
||||
- ${UI_PORT:-3000}:3000
|
||||
build:
|
||||
context: ui
|
||||
tags:
|
||||
- aviation-ui:${TAG:-latest}
|
||||
depends_on:
|
||||
- service
|
||||
networks:
|
||||
|
||||
@@ -13,7 +13,10 @@ help: ## This info
|
||||
@echo
|
||||
|
||||
build: ## Build the Docker image
|
||||
export TAG=${GIT_HASH} && docker compose build
|
||||
docker compose build
|
||||
|
||||
tag: ## Tag the Docker image
|
||||
docker tag aviation-service:latest aviation-service:${GIT_HASH}
|
||||
|
||||
utils: ## Start the utils
|
||||
docker compose up -d db
|
||||
|
||||
@@ -63,8 +63,6 @@ services:
|
||||
- "${SERVICE_PORT:-5000}:5000"
|
||||
build:
|
||||
context: .
|
||||
tags:
|
||||
- aviation-service:${TAG:-latest}
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
||||
@@ -13,7 +13,10 @@ help: ## This info
|
||||
@echo
|
||||
|
||||
build: ## Install the dependencies and build
|
||||
export TAG=${GIT_HASH} && docker compose build
|
||||
docker compose build
|
||||
|
||||
tag: ## Tag the Docker image
|
||||
docker tag aviation-ui:latest aviation-ui:${GIT_HASH}
|
||||
|
||||
up: ## Start the dev instance
|
||||
docker compose up -d
|
||||
|
||||
@@ -13,8 +13,6 @@ services:
|
||||
build:
|
||||
context: ./
|
||||
target: dev
|
||||
tags:
|
||||
- aviation-ui:${TAG:-latest}
|
||||
command: "npm run dev"
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
|
||||
Reference in New Issue
Block a user