-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 980 Bytes
/
build_artifact.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
###
# This workflow is used for quickly building artifacts
# Triggers:
# 1. Manual trigger
# Jobs:
# 1. Calculate Version Number
# 2. Build Web Artifact
# 3. Build Client Artifact
###
name: Build Artifact
run-name: Build Artifact triggered by ${{ github.actor }} 🛠️
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
build-web-x86_64:
name: Build Web Artifact (x86_64)
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v4
- name: Build docker image (x86_64)
run: |
pushd distribution
docker build -t docker.io/oceanbase/compute:0.0.1 -f Dockerfile .
docker save -o obcloud-compute.tar.gz docker.io/oceanbase/compute:0.0.1
popd
- name: Upload docker image (x86_64)
uses: actions/upload-artifact@v4
with:
name: obcloud-compute.tar.gz
path: distribution/obcloud-compute.tar.gz