File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 16
16
env :
17
17
ACTIONS_RUNNER_DEBUG : true
18
18
ACTIONS_STEP_DEBUG : true
19
+ DOCKER_BUILDKIT : 1
19
20
steps :
20
21
- uses : actions/checkout@v3
21
22
with :
28
29
with :
29
30
python-version : " 3.10"
30
31
enable-cache : true
32
+ ignore-nothing-to-cache : true
31
33
cache-dependency-glob : |
32
34
**/requirements*.txt
33
35
**/pyproject.toml
44
46
echo "UV version: ${{ steps.setup-uv.outputs.uv-version }}"
45
47
uv --version
46
48
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
+
47
55
- uses : superfly/flyctl-actions/setup-flyctl@master
48
56
49
57
# Set Fly secrets
86
94
ls -la ./src_deploy/
87
95
cat ./src_deploy/gpu.Dockerfile
88
96
89
- # Deploy to Fly with debug flags
97
+ # Deploy to Fly with BuildKit enabled
90
98
- 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
92
100
env :
93
- FLY_API_TOKEN : ${{ secrets.FLY_IO_DEPLOY_TOKEN }}
101
+ FLY_API_TOKEN : ${{ secrets.FLY_IO_DEPLOY_TOKEN }}
102
+ DOCKER_BUILDKIT : 1
You can’t perform that action at this time.
0 commit comments