@@ -15,27 +15,57 @@ concurrency:
15
15
jobs :
16
16
build :
17
17
if : github.repository == 'pypi/warehouse'
18
- runs-on : depot- ubuntu-24.04-arm
18
+ runs-on : ubuntu-24.04-arm
19
19
outputs :
20
- buildId : ${{ steps.build.outputs.build-id }}
20
+ buildId : ${{ github.run_id }}
21
21
permissions :
22
- id-token : write
22
+ packages : write
23
23
steps :
24
24
- name : Check out repository
25
25
uses : actions/checkout@v4
26
26
with :
27
27
persist-credentials : false
28
- - name : Set up Depot CLI
29
- uses : depot /setup-action@v1
30
- - name : Build image
31
- id : build
32
- uses : depot/build-push-action@v1
28
+ - name : Set up Docker Buildx
29
+ uses : docker /setup-buildx- action@v3
30
+ - name : Cache
31
+ uses : actions/cache@v3
32
+ id : cache
33
33
with :
34
- save : true
34
+ path : |
35
+ var-cache-apt
36
+ var-lib-apt
37
+ root-cache-pip
38
+ root-npm
39
+ key : cache-${{ hashFiles('Dockerfile') }}
40
+ - name : inject cache into docker
41
+ uses :
reproducible-containers/[email protected]
42
+ with :
43
+ cache-map : |
44
+ {
45
+ "var-cache-apt": "/var/cache/apt",
46
+ "var-lib-apt": "/var/lib/apt",
47
+ "root-cache-pip": "/root/.cache/pip",
48
+ "root-npm": "/root/.npm"
49
+ }
50
+ skip-extraction : ${{ steps.cache.outputs.cache-hit }}
51
+ - name : Login To GHCR
52
+ uses : docker/login-action@v3
53
+ with :
54
+ registry : ghcr.io
55
+ username : ${{ github.actor }}
56
+ password : ${{ secrets.GITHUB_TOKEN }}
57
+ - name : Build and push
58
+ uses : docker/build-push-action@v5
59
+ with :
60
+ context : .
61
+ cache-from : type=gha
62
+ cache-to : type=gha,mode=max
63
+ push : true
35
64
build-args : |
36
65
DEVEL=yes
37
66
CI=yes
38
- tags : pypi/warehouse:ci-${{ github.run_id }}
67
+ tags : |
68
+ ghcr.io/pypi/warehouse:ci-${{ github.run_id }}
39
69
test :
40
70
# Time out if our test suite has gotten hung
41
71
timeout-minutes : 15
@@ -57,13 +87,13 @@ jobs:
57
87
command : bin/licenses
58
88
- name : Translations
59
89
command : bin/translations
60
- runs-on : depot- ubuntu-24.04-arm-4
90
+ runs-on : ubuntu-24.04-arm
61
91
container :
62
- image : registry.depot.dev/rltf7cln5v: ${{ needs.build.outputs.buildId }}
92
+ image : ghcr.io/pypi/warehouse:ci- ${{ needs.build.outputs.buildId }}
63
93
env :
64
94
BILLING_BACKEND : warehouse.subscriptions.services.MockStripeBillingService api_base=http://stripe:12111 api_version=2020-08-27
65
95
permissions :
66
- id-token : write
96
+ packages : read
67
97
services :
68
98
postgres :
69
99
image : ${{ (matrix.name == 'Tests') && 'postgres:16.1' || '' }}
@@ -101,12 +131,12 @@ jobs:
101
131
check_db :
102
132
name : Check Database Consistency
103
133
needs : build
104
- runs-on : depot- ubuntu-24.04-arm
134
+ runs-on : ubuntu-24.04-arm
105
135
continue-on-error : true
106
136
container :
107
- image : registry.depot.dev/rltf7cln5v: ${{ needs.build.outputs.buildId }}
137
+ image : ghcr.io/pypi/warehouse:ci- ${{ needs.build.outputs.buildId }}
108
138
permissions :
109
- id-token : write
139
+ packages : read
110
140
services :
111
141
postgres :
112
142
image : postgres:16.1
0 commit comments