Skip to content

Commit f84bfba

Browse files
[fix] gh workflow uv
1 parent 9e1017b commit f84bfba

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/fly-deploy-gpu.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
ACTIONS_RUNNER_DEBUG: true
1818
ACTIONS_STEP_DEBUG: true
19+
DOCKER_BUILDKIT: 1
1920
steps:
2021
- uses: actions/checkout@v3
2122
with:
@@ -28,6 +29,7 @@ jobs:
2829
with:
2930
python-version: "3.10"
3031
enable-cache: true
32+
ignore-nothing-to-cache: true
3133
cache-dependency-glob: |
3234
**/requirements*.txt
3335
**/pyproject.toml
@@ -44,6 +46,12 @@ jobs:
4446
echo "UV version: ${{ steps.setup-uv.outputs.uv-version }}"
4547
uv --version
4648
49+
# Set up Docker Buildx for better build performance
50+
- name: Set up Docker Buildx
51+
uses: docker/setup-buildx-action@v3
52+
with:
53+
buildkitd-flags: --debug
54+
4755
- uses: superfly/flyctl-actions/setup-flyctl@master
4856

4957
# Set Fly secrets
@@ -86,8 +94,9 @@ jobs:
8694
ls -la ./src_deploy/
8795
cat ./src_deploy/gpu.Dockerfile
8896
89-
# Deploy to Fly with debug flags
97+
# Deploy to Fly with BuildKit enabled
9098
- name: Deploy a docker container to fly.io
91-
run: flyctl deploy --remote-only --config src_deploy/gpu.fly.toml --dockerfile ./src_deploy/gpu.Dockerfile
99+
run: flyctl deploy --remote-only --config src_deploy/gpu.fly.toml --dockerfile ./src_deploy/gpu.Dockerfile --build-arg BUILDKIT_INLINE_CACHE=1
92100
env:
93-
FLY_API_TOKEN: ${{ secrets.FLY_IO_DEPLOY_TOKEN }}
101+
FLY_API_TOKEN: ${{ secrets.FLY_IO_DEPLOY_TOKEN }}
102+
DOCKER_BUILDKIT: 1

0 commit comments

Comments
 (0)