|
17 | 17 | description: if checked, images will be pushed to dgraph-custom repo in Dockerhub |
18 | 18 |
|
19 | 19 | permissions: |
20 | | - contents: read |
| 20 | + contents: write |
21 | 21 |
|
22 | 22 | jobs: |
23 | 23 | dgraph-build-amd64: |
24 | | - runs-on: warp-ubuntu-latest-x64-4x |
| 24 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
25 | 25 | timeout-minutes: 15 |
26 | 26 | steps: |
27 | 27 | - uses: actions/checkout@v5 |
28 | 28 | with: |
29 | 29 | ref: "${{ github.event.inputs.releasetag }}" |
30 | 30 | - name: Set up Go |
31 | | - uses: actions/setup-go@v5 |
| 31 | + uses: actions/setup-go@v6 |
32 | 32 | with: |
33 | 33 | go-version-file: go.mod |
34 | 34 | - name: Install protobuf-compiler |
|
81 | 81 | badger/badger-linux-amd64.tar.gz |
82 | 82 | dgraph/dgraph-checksum-linux-amd64.sha256 |
83 | 83 | dgraph/dgraph-linux-amd64.tar.gz |
84 | | - - name: Move Badger Binary into Linux Directory |
85 | | - run: | |
86 | | - tar -xzf badger/badger-linux-amd64.tar.gz --directory badger |
87 | | - [ -d "linux" ] || mkdir linux |
88 | | - # linux directory will be added to docker image in build step |
89 | | - cp badger/badger-linux-amd64 linux/badger |
90 | 84 | - name: Make Dgraph Docker Image |
91 | 85 | run: | |
92 | 86 | set -e |
@@ -121,14 +115,14 @@ jobs: |
121 | 115 | path: dgraph-standalone-amd64.tar |
122 | 116 |
|
123 | 117 | dgraph-build-arm64: |
124 | | - runs-on: warp-ubuntu-latest-arm64-4x |
| 118 | + runs-on: blacksmith-4vcpu-ubuntu-2404-arm |
125 | 119 | timeout-minutes: 15 |
126 | 120 | steps: |
127 | 121 | - uses: actions/checkout@v5 |
128 | 122 | with: |
129 | 123 | ref: "${{ github.event.inputs.releasetag }}" |
130 | 124 | - name: Set up Go |
131 | | - uses: actions/setup-go@v5 |
| 125 | + uses: actions/setup-go@v6 |
132 | 126 | with: |
133 | 127 | go-version-file: go.mod |
134 | 128 | - name: Install protobuf-compiler |
@@ -181,12 +175,6 @@ jobs: |
181 | 175 | badger/badger-linux-arm64.tar.gz |
182 | 176 | dgraph/dgraph-checksum-linux-arm64.sha256 |
183 | 177 | dgraph/dgraph-linux-arm64.tar.gz |
184 | | - - name: Move Badger Binary into Linux Directory |
185 | | - run: | |
186 | | - tar -xzf badger/badger-linux-arm64.tar.gz --directory badger |
187 | | - [ -d "linux" ] || mkdir linux |
188 | | - # linux directory will be added to docker image in build step |
189 | | - cp badger/badger-linux-arm64 linux/badger |
190 | 178 | - name: Make Dgraph Docker Image |
191 | 179 | run: | |
192 | 180 | set -e |
@@ -222,7 +210,7 @@ jobs: |
222 | 210 |
|
223 | 211 | graph-docker-image-and-manifests-push: |
224 | 212 | needs: [dgraph-build-amd64, dgraph-build-arm64] |
225 | | - runs-on: warp-ubuntu-latest-x64-4x |
| 213 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
226 | 214 | timeout-minutes: 15 |
227 | 215 | steps: |
228 | 216 | - uses: actions/checkout@v5 |
@@ -260,6 +248,20 @@ jobs: |
260 | 248 | with: |
261 | 249 | name: dgraph-docker-arm64 |
262 | 250 |
|
| 251 | + # Download Dgraph Linux AMD64 Binary Artifacts |
| 252 | + - name: Download Dgraph Linux AMD64 Binary Artifacts |
| 253 | + uses: actions/download-artifact@v5 |
| 254 | + with: |
| 255 | + name: dgraph-amd-release-artifacts |
| 256 | + path: dgraph-amd-release-artifacts |
| 257 | + |
| 258 | + # Download Dgraph Linux ARM64 Binary Artifacts |
| 259 | + - name: Download Dgraph Linux ARM64 Binary Artifacts |
| 260 | + uses: actions/download-artifact@v5 |
| 261 | + with: |
| 262 | + name: dgraph-arm-release-artifacts |
| 263 | + path: dgraph-arm-release-artifacts |
| 264 | + |
263 | 265 | # Load Dgraph AMD64 Image |
264 | 266 | - name: Load AMD64 Docker Image |
265 | 267 | run: | |
@@ -325,3 +327,18 @@ jobs: |
325 | 327 | docker manifest push dgraph/dgraph:latest |
326 | 328 | fi |
327 | 329 | fi |
| 330 | +
|
| 331 | + - name: Upload Assets to Release |
| 332 | + if: github.event.inputs.custom-build == 'false' |
| 333 | + uses: softprops/action-gh-release@v2 |
| 334 | + with: |
| 335 | + tag_name: ${{ github.event.inputs.releasetag }} |
| 336 | + files: | |
| 337 | + dgraph-amd-release-artifacts/dgraph/dgraph-linux-amd64.tar.gz |
| 338 | + dgraph-amd-release-artifacts/dgraph/dgraph-checksum-linux-amd64.sha256 |
| 339 | + dgraph-amd-release-artifacts/badger/badger-linux-amd64.tar.gz |
| 340 | + dgraph-amd-release-artifacts/badger/badger-checksum-linux-amd64.sha256 |
| 341 | + dgraph-arm-release-artifacts/dgraph/dgraph-linux-arm64.tar.gz |
| 342 | + dgraph-arm-release-artifacts/dgraph/dgraph-checksum-linux-arm64.sha256 |
| 343 | + dgraph-arm-release-artifacts/badger/badger-linux-arm64.tar.gz |
| 344 | + dgraph-arm-release-artifacts/badger/badger-checksum-linux-arm64.sha256 |
0 commit comments