File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name: Build on beta branch
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v2
13
+ with:
14
+ ref: beta # checkout the main branch to build nightly
15
+
16
+ - name: Check Disk Space Before Build
17
+ run: df -h
18
+
19
+ - name: Docker Prune
20
+ run: docker system prune -af
21
+
22
+ - name: Set up Docker Buildx
23
+ uses: docker/setup-buildx-action@v1
24
+
25
+ - name: Login to DockerHub
26
+ uses: docker/login-action@v1
27
+ with:
28
+ username: ${{ secrets.DOCKER_USERNAME }}
29
+ password: ${{ secrets.DOCKER_PASSWORD }}
30
+
31
+ - name: Build and Push Docker Image
32
+ uses: docker/build-push-action@v2
33
+ with:
34
+ context: .
35
+ target: prod
36
+ platforms: linux/amd64,linux/arm64
37
+ push: true
38
+ tags: thirdweb/engine:beta-nightly
39
+ build-args: |
40
+ ENGINE_VERSION=beta-nightly
41
+
42
+ - name: Check Disk Space After Build
43
+ run: df -h
You can’t perform that action at this time.
0 commit comments