Skip to content

Commit 8684814

Browse files
committed
Update build-v2.yaml
1 parent 83c9839 commit 8684814

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/build-v2.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
context: ./frontend
3838
push: true
3939
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-frontend:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-frontend:${{ env.CODE_VERSION }}
40+
cache-from: type=gha
41+
cache-to: type=gha,mode=max
4042

4143
- name: Build osm-cgimap
4244
uses: docker/build-push-action@v6
@@ -45,15 +47,17 @@ jobs:
4547
push: true
4648
file: ./osm-cgimap/docker/ubuntu/Dockerfile2404
4749
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-cgimap:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-cgimap:${{ env.CODE_VERSION }}
48-
50+
cache-from: type=gha
51+
cache-to: type=gha,mode=max
4952

5053
- name: Build osm-log-proxy
5154
uses: docker/build-push-action@v6
5255
with:
5356
context: ./osm-log-proxy
5457
push: true
5558
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-log-proxy:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-log-proxy:${{ env.CODE_VERSION }}
56-
59+
cache-from: type=gha
60+
cache-to: type=gha,mode=max
5761

5862
- name: Build osm-rails
5963
uses: docker/build-push-action@v6
@@ -62,31 +66,35 @@ jobs:
6266
push: true
6367
file: ./osm-rails/Dockerfile.prod
6468
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-rails:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-rails:${{ env.CODE_VERSION }}
65-
69+
cache-from: type=gha
70+
cache-to: type=gha,mode=max
6671

6772
- name: Build osm-web
6873
uses: docker/build-push-action@v6
6974
with:
7075
context: ./osm-web
7176
push: true
7277
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-web:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-osm-web:${{ env.CODE_VERSION }}
73-
78+
cache-from: type=gha
79+
cache-to: type=gha,mode=max
7480

7581
- name: Build pathways-editor
7682
uses: docker/build-push-action@v6
7783
with:
7884
context: ./pathways-editor
7985
push: true
8086
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-pathways-editor:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-pathways-editor:${{ env.CODE_VERSION }}
81-
87+
cache-from: type=gha
88+
cache-to: type=gha,mode=max
8289

8390
- name: Build rapid
8491
uses: docker/build-push-action@v6
8592
with:
8693
context: ./rapid
8794
push: true
8895
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-rapid:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-rapid:${{ env.CODE_VERSION }}
89-
96+
cache-from: type=gha
97+
cache-to: type=gha,mode=max
9098

9199
- name: Build tasks-backend
92100
uses: docker/build-push-action@v6
@@ -98,7 +106,8 @@ jobs:
98106
build-args: |
99107
APP_UID=1000
100108
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-tasks-backend:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-tasks-backend:${{ env.CODE_VERSION }}
101-
109+
cache-from: type=gha
110+
cache-to: type=gha,mode=max
102111

103112
- name: Build tasks-frontend
104113
uses: docker/build-push-action@v6
@@ -109,7 +118,8 @@ jobs:
109118
build-args: |
110119
TM_APP_API_URL="https://tasks.workspaces-${{ vars.ENV }}.sidewalks.washington.edu/"
111120
tags: ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-tasks-frontend:${{ vars.ENV }}, ${{ vars.WS_DOCKER_REGISTRY }}/workspaces-tasks-frontend:${{ env.CODE_VERSION }}
112-
121+
cache-from: type=gha
122+
cache-to: type=gha,mode=max
113123

114124
deploy:
115125
needs: build

0 commit comments

Comments
 (0)