15
15
16
16
jobs :
17
17
build_image :
18
- runs-on :buildjet-4vcpu- ubuntu-2204
18
+ runs-on :ubuntu-latest
19
19
steps :
20
20
-name :Checkout
21
21
uses :actions/checkout@v4
32
32
tag=${tag//\//--}
33
33
echo "tag=${tag}" >> $GITHUB_OUTPUT
34
34
35
- -name :Set upDocker Buildx
36
- uses :docker /setup-buildx- action@v3
35
+ -name :Set upDepot CLI
36
+ uses :depot /setup-action@v1
37
37
38
38
-name :Login to DockerHub
39
39
if :github.ref == 'refs/heads/main'
@@ -43,14 +43,14 @@ jobs:
43
43
password :${{ secrets.DOCKERHUB_PASSWORD }}
44
44
45
45
-name :Build and push
46
- uses :docker /build-push-action@v5
46
+ uses :depot /build-push-action@v1
47
47
with :
48
+ project :b4q6ltmpzh
49
+ token :${{ secrets.DEPOT_TOKEN }}
48
50
context :" {{defaultContext}}:dogfood"
49
51
pull :true
50
52
push :${{ github.ref == 'refs/heads/main' }}
51
53
tags :" codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }},codercom/oss-dogfood:latest"
52
- cache-from :type=registry,ref=codercom/oss-dogfood:latest
53
- cache-to :type=inline
54
54
55
55
deploy_template :
56
56
needs :build_image