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 }}
0 commit comments