This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
183 lines (142 loc) · 5.08 KB
/
push-staging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
name: Build Packages Staging
on:
workflow_dispatch:
jobs:
build:
name: Build stage2 packages
runs-on: ubuntu-16-core
permissions:
id-token: write
packages: write
contents: read
steps:
- name: Generate snapshot date
id: snapshot-date
run: |
echo "date=$(date -u +%Y%m%d)" >> $GITHUB_OUTPUT
echo "epoch=$(date -u +%s)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/checkout@v3
- run: echo "${{ secrets.MELANGE_RSA }}" > ./wolfi-signing.rsa
- run: |
sudo mkdir -p /etc/apk/keys
sudo cp ./wolfi-signing.rsa.pub /etc/apk/keys/wolfi-signing.rsa.pub
- uses: chainguard-dev/actions/setup-melange@main
- id: auth
name: 'Authenticate to Google Cloud'
uses: google-github-actions/auth@v0
with:
workload_identity_provider: "projects/567187841907/locations/global/workloadIdentityPools/staging-shared-9bd2/providers/staging-shared-gha"
service_account: "[email protected]"
- uses: google-github-actions/setup-gcloud@v0
with:
project_id: staging-images-183e
- name: 'Check that GCloud is properly configured'
run: |
gcloud info
gcloud --quiet alpha storage ls
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: m4
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: ncurses
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: busybox
empty-workspace: false
source-dir: ${{ github.workspace }}/busybox
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: file
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: gawk
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: grep
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: gzip
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: make
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: patch
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: sed
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: xz
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: openssl
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: cross-pkgconf
empty-workspace: false
source-dir: ${{ github.workspace }}/cross-pkgconf
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: ca-certificates
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: wget
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: zlib
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: apk-tools
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: binutils
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: pkgconf
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: bison
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: gmp
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: mpfr
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: mpc
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: isl
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: gcc
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: pax-utils
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: linux-headers
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: wolfi-baselayout
empty-workspace: false
source-dir: ${{ github.workspace }}/wolfi-baselayout
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: glibc
empty-workspace: false
source-dir: ${{ github.workspace }}/glibc
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: libstdc++
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: build-base
- name: 'Upload the repository to a bucket'
run: |
cp /etc/apk/keys/wolfi-signing.rsa.pub ${{ github.workspace }}/packages/wolfi-signing.rsa.pub
gcloud --quiet alpha storage cp --recursive ${{ github.workspace }}/packages/ gs://wolfi-registry-source/bootstrap/stage2/