@@ -28,15 +28,15 @@ jobs:
28
28
username : ${{ secrets.DOCKER_USERNAME }}
29
29
password : ${{ secrets.DOCKER_PASSWORD }}
30
30
31
- # Extract metadata for api image
32
- - name : Extract metadata (tags) for Docker api Image
33
- id : meta_api
31
+ # Extract metadata for app image
32
+ - name : Extract metadata (tags) for Docker app Image
33
+ id : meta_app
34
34
uses : docker/metadata-action@v3
35
35
with :
36
36
images : ualbertalib/dmp_roadmap
37
37
flavor : |
38
38
latest=false
39
- suffix=-api
39
+ suffix=-app
40
40
# conditional tagging based on release type
41
41
# prerelease corresponds to staging, latest to production
42
42
tags : |
@@ -45,15 +45,15 @@ jobs:
45
45
(!github.event.release.prerelease &&
46
46
'type=match,pattern=.+portage-(\d+\.\d+\.\d+)$,group=1') }}
47
47
48
- # Extract metadata for web image
49
- - name : Extract metadata (tags) for Docker web image
50
- id : meta_web
48
+ # Extract metadata for assets image
49
+ - name : Extract metadata (tags) for Docker assets image
50
+ id : meta_assets
51
51
uses : docker/metadata-action@v3
52
52
with :
53
53
images : ualbertalib/dmp_roadmap
54
54
flavor : |
55
55
latest=false
56
- suffix=-web
56
+ suffix=-assets
57
57
# conditional tagging based on release type
58
58
# prerelease corresponds to staging, latest to production
59
59
tags : |
@@ -63,31 +63,31 @@ jobs:
63
63
'type=match,pattern=.+portage-(\d+\.\d+\.\d+)$,group=1') }}
64
64
65
65
66
- - name : Build and push the api stage image
66
+ - name : Build and push the app stage image
67
67
uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
68
68
with :
69
69
context : .
70
70
file : Dockerfile.production
71
- target : api
71
+ target : app
72
72
push : true
73
73
tags : |
74
- ${{ steps.meta_api .outputs.tags }}
74
+ ${{ steps.meta_app .outputs.tags }}
75
75
# Fetch existing build cache from Docker Hub, if available
76
- cache-from : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-api
76
+ cache-from : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-app
77
77
# Push the updated build cache to Docker Hub
78
- cache-to : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-api ,mode=max
78
+ cache-to : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-app ,mode=max
79
79
80
- - name : Build and push the web stage image
80
+ - name : Build and push the assets stage image
81
81
uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
82
82
with :
83
83
context : .
84
84
file : Dockerfile.production
85
- target : web
85
+ target : assets
86
86
push : true
87
87
tags : |
88
- ${{ steps.meta_web .outputs.tags }}
88
+ ${{ steps.meta_assets .outputs.tags }}
89
89
# Fetch existing build cache from Docker Hub, if available
90
- # else, built `api ` layer will be used as a fallback cache
91
- cache-from : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-web
90
+ # else, built `app ` layer will be used as a fallback cache
91
+ cache-from : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-assets
92
92
# Push the updated build cache to Docker Hub
93
- cache-to : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-web ,mode=max
93
+ cache-to : type=registry,ref=ualbertalib/dmp_roadmap:build-cache-assets ,mode=max
0 commit comments