Skip to content

Commit f8acd66

Browse files
authored
CICD for beta-nightly image (#481)
1 parent 8a2558b commit f8acd66

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/beta.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)