Skip to content

Commit 58ea47d

Browse files
committed
Update build.yaml
1 parent 010b16a commit 58ea47d

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/build.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,27 @@ jobs:
3131
run:
3232
./gen-rel-notes.sh > CHANGELOG
3333

34-
- name: Build the stack
34+
- name: Prepare for buildx
3535
run: |
3636
cp tdei_uw.env .env
3737
echo "CODE_VERSION=${CODE_VERSION}" >> .env
38-
docker buildx bake -f docker-compose.build.yml --push
38+
39+
- name: Set up buildx
40+
uses: docker/setup-buildx-action@v3
41+
42+
- name: Build and push
43+
uses: docker/bake-action@v6
44+
with:
45+
files:
46+
docker-compose.build.yml
47+
push: true
48+
set: |
49+
*.cache-from=type=gha
50+
*.cache-to=type=gha,mode=max
3951
env:
4052
ENV: ${{ vars.ENV }}
4153
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
42-
54+
4355
# passwords
4456
WS_API_DB_PASS: ${{ secrets.WS_API_DB_PASS }}
4557
WS_MAPBOX_ACCESS_TOKEN: ${{ secrets.WS_MAPBOX_ACCESS_TOKEN }}
@@ -56,6 +68,8 @@ jobs:
5668

5769
# machine to deploy to
5870
AZURE_DOCKER_HOST_IP: ${{ vars.AZURE_DOCKER_HOST_IP }}
71+
72+
# tag to deploy
5973
WS_DOCKER_TAG: ${{ env.CODE_VERSION }}
6074

6175
# passwords
@@ -80,7 +94,7 @@ jobs:
8094
docker context create dev --docker "host=ssh://github-actions@${{ vars.AZURE_DOCKER_HOST_IP }}"
8195
docker context use dev
8296
83-
# remove images no longer in use--need disk space
97+
# remove images no longer in use--may need disk space to pull
8498
docker image prune -a -f
8599
86100
# pull new images, recreate containers

0 commit comments

Comments
 (0)