@@ -35,26 +35,19 @@ jobs:
35
35
with :
36
36
push : ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/mainnet' || github.ref == 'refs/heads/testnet' || github.ref == 'refs/heads/ci-refactoring') }}
37
37
file : ./docker/Dockerfile.base
38
- context : ./
38
+ context : .
39
39
tags : ghcr.io/planb-network/blms-base:${{ github.sha }}
40
40
cache-from : type=gha,scope=global
41
41
cache-to : type=gha,mode=max,scope=global
42
- outputs : type=docker,dest=/tmp/image.tar
43
-
44
- - name : Upload Docker image for base
45
- uses : actions/upload-artifact@v4
46
- with :
47
- name : base-image-${{ github.sha }}
48
- path : /tmp/image.tar
49
42
50
43
build_api :
51
44
name : Build API
52
45
if : (github.event_name == 'push') && (github.ref == 'refs/heads/mainnet' || github.ref == 'refs/heads/testnet' || github.ref == 'refs/heads/ci-refactoring')
53
46
runs-on : ubuntu-latest
54
47
needs : build_base
55
48
env :
56
- base : ghcr.io/planb-network/blms-base:${{ github.sha }}
57
49
image : ghcr.io/planb-network/blms-api
50
+ base : ghcr.io/planb-network/blms-base:${{ github.sha }}
58
51
steps :
59
52
- name : Checkout code
60
53
uses : actions/checkout@v4
71
64
username : ${{ github.actor }}
72
65
password : ${{ secrets.GITHUB_TOKEN }}
73
66
74
- - name : Download blms-base image
75
- uses : actions/download-artifact@v4
76
- with :
77
- name : base-image-${{ github.sha }}
78
-
79
- - name : Load blms-base image
80
- run : docker load --input ${{ github.workspace }}/image.tar
81
-
82
67
- name : Set Docker image metadata
83
68
uses : docker/metadata-action@v5
84
69
id : meta
93
78
- name : Build and push Docker image for api
94
79
uses : docker/build-push-action@v6
95
80
with :
96
- push : ${{ (github.event_name == 'push') && (github.ref != 'refs/heads/ci-refactoring') }}
81
+ # push: ${{ (github.event_name == 'push') && (github.ref != 'refs/heads/ci-refactoring') }}
82
+ push : true
97
83
file : ./apps/api/docker/Dockerfile
98
- context : ./
84
+ context : .
99
85
tags : ${{ steps.meta.outputs.tags }}
100
86
cache-from : type=gha,scope=global
101
87
cache-to : type=gha,mode=max,scope=global
108
94
runs-on : ubuntu-latest
109
95
needs : build_base
110
96
env :
111
- base : ghcr.io/planb-network/blms-base:${{ github.sha }}
112
97
image : ghcr.io/planb-network/blms-web
98
+ base : ghcr.io/planb-network/blms-base:${{ github.sha }}
113
99
steps :
114
100
- name : Checkout code
115
101
uses : actions/checkout@v4
@@ -126,14 +112,6 @@ jobs:
126
112
username : ${{ github.actor }}
127
113
password : ${{ secrets.GITHUB_TOKEN }}
128
114
129
- - name : Download blms-base image
130
- uses : actions/download-artifact@v4
131
- with :
132
- name : base-image-${{ github.sha }}
133
-
134
- - name : Load blms-base image
135
- run : docker load --input ${{ github.workspace }}/image.tar
136
-
137
115
- name : Set Docker image metadata for web
138
116
uses : docker/metadata-action@v5
139
117
id : meta
@@ -148,9 +126,10 @@ jobs:
148
126
- name : Build and push Docker image for web
149
127
uses : docker/build-push-action@v6
150
128
with :
151
- push : ${{ (github.event_name == 'push') && (github.ref != 'refs/heads/ci-refactoring') }}
129
+ # push: ${{ (github.event_name == 'push') && (github.ref != 'refs/heads/ci-refactoring') }}
130
+ push : true
152
131
file : ./apps/web/docker/Dockerfile
153
- context : ./
132
+ context : .
154
133
tags : ${{ steps.meta.outputs.tags }}
155
134
cache-from : type=gha,scope=global
156
135
cache-to : type=gha,mode=max,scope=global
0 commit comments