Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsbergPhilip committed Nov 14, 2024
1 parent 2c0e983 commit 81b47bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

#- name: Build base image
# run: docker build -t diamonds2_base:latest -f .docker/dockerfiles/base .
- name: Build base image
run: docker build -t diamonds2_base:latest -f .docker/dockerfiles/base .

- name: Build docker image
run: docker compose -f docker-compose.yml build
run: docker compose -f docker-compose.yml --build

# Build and push production images
build-prod:
Expand All @@ -74,11 +74,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

#- name: Build base image
# run: docker build -t diamonds2_base:latest -f .docker/dockerfiles/base .
- name: Build base image
run: docker build -t diamonds2_base:latest -f .docker/dockerfiles/base .

- name: Build docker image
run: docker compose -f docker-compose.prod-build.yml build
run: docker compose -f docker-compose.prod-build.yml --build

- name: Extract branch name
shell: bash
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ networks:
diamonds2:

services:
base:
image: diamonds2_base:latest
build:
context: .
dockerfile: .docker/dockerfiles/base

frontend:
build:
context: .
Expand Down

0 comments on commit 81b47bd

Please sign in to comment.