Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit d0469a8

Browse files
committed
Updated Docker Compose and Added Publish Workflow
1 parent 1f475b0 commit d0469a8

File tree

3 files changed

+58
-9
lines changed

3 files changed

+58
-9
lines changed

.github/workflows/publish.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish Docker Images
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
push_to_registry:
7+
name: Publish Docker Images
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v2
12+
- name: Login Docker Hub
13+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
14+
with:
15+
username: ${{ secrets.DOCKER_USERNAME }}
16+
password: ${{ secrets.DOCKER_PASSWORD }}
17+
- name: Extract metadata for Docker
18+
id: meta
19+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
20+
with:
21+
images: prabhuomkar/my-docker-hub-repository
22+
- name: Build and Push Skim Frontend
23+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
24+
with:
25+
context: ./frontend/Dockerfile
26+
push: true
27+
tags: ${{ steps.meta.outputs.tags }}
28+
labels: ${{ steps.meta.outputs.labels }}
29+
- name: Build and Push Skim API
30+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
31+
with:
32+
context: ./api/Dockerfile
33+
push: true
34+
tags: ${{ steps.meta.outputs.tags }}
35+
labels: ${{ steps.meta.outputs.labels }}
36+
- name: Build and Push Skim Worker
37+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
38+
with:
39+
context: ./worker/Dockerfile
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}
43+
- name: Build and Push Skim ML
44+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
45+
with:
46+
context: ./ml/Dockerfile
47+
push: true
48+
tags: ${{ steps.meta.outputs.tags }}
49+
labels: ${{ steps.meta.outputs.labels }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Open Source Photos Platform Powered by PyTorch
88
- [Frontend](frontend/README.md) [![Frontend](https://github.com/prabhuomkar/iris/actions/workflows/frontend.yaml/badge.svg)](https://github.com/prabhuomkar/iris/actions/workflows/frontend.yaml)
99
- [API](api/README.md) [![API](https://github.com/prabhuomkar/iris/actions/workflows/api.yaml/badge.svg)](https://github.com/prabhuomkar/iris/actions/workflows/api.yaml)
1010
- [Worker](worker/README.md) [![Worker](https://github.com/prabhuomkar/iris/actions/workflows/worker.yaml/badge.svg)](https://github.com/prabhuomkar/iris/actions/workflows/worker.yaml)
11-
- [ML](ml/README.md)
11+
- [ML](ml/README.md) [![ML](https://github.com/prabhuomkar/iris/actions/workflows/ml.yaml/badge.svg)](https://github.com/prabhuomkar/iris/actions/workflows/ml.yaml)
1212

1313
**Infrastructure Services:**
1414
- [Database: MongoDB](https://www.mongodb.com)

docker-compose.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: '3'
22
services:
33
# applications
4-
# frontend:
5-
# build: frontend
6-
# restart: always
7-
# container_name: frontend
8-
# ports:
9-
# - '5000:80'
10-
# depends_on:
11-
# - api
4+
frontend:
5+
build: frontend
6+
restart: always
7+
container_name: frontend
8+
ports:
9+
- '5000:80'
10+
depends_on:
11+
- api
1212
api:
1313
build: api
1414
restart: always

0 commit comments

Comments
 (0)