forked from intel-analytics/ipex-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 2.53 KB
/
bigdl-release-docker.yml
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
name: BigDL Release Docker
on:
#pull_request:
#branchs: [ main ]
workflow_dispatch:
inputs:
tag:
description: 'docker image tag (e.g. 2.1.0-SNAPSHOT)'
required: true
default: 'latest'
type: string
permissions:
contents: read
packages: write
jobs:
docker-build-bigdl:
runs-on: [self-hosted, Shire]
steps:
- uses: actions/checkout@v3
- name: set env
env:
DEFAULT_TAG: 'latest'
run: |
echo "TAG=${{ github.event.inputs.tag || env.DEFAULT_TAG }}" >> $GITHUB_ENV
- name: docker login
run: |
docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
- name: docker deploy bigdl
run: |
export IMAGE=intelanalytics/bigdl
cd docker/bigdl
echo "########################################"
echo "################# bigdl 3.1.3 #######"
echo "########################################"
docker build \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \
--build-arg SPARK_VERSION=3.1.3 \
--build-arg JDK_VERSION=8u192 \
--build-arg JDK_URL=${JDK_URL} \
--build-arg no_proxy=${NO_PROXY} \
--rm --no-cache -t $IMAGE-spark-3.1.3:${TAG} .
docker push ${IMAGE}-spark-3.1.3:${TAG}
docker tag ${IMAGE}-spark-3.1.3:${TAG} 10.239.45.10/arda/${IMAGE}-spark-3.1.3:${TAG}
docker push 10.239.45.10/arda/${IMAGE}-spark-3.1.3:${TAG}
docker rmi -f ${IMAGE}-spark-3.1.3:${TAG} 10.239.45.10/arda/${IMAGE}-spark-3.1.3:${TAG}
- name: docker deploy bigdl-k8s
run: |
cd docker/bigdl-k8s
export IMAGE=intelanalytics/bigdl-k8s
echo "########################################"
echo "################# bigdl-k8s 3.1.3 #######"
echo "########################################"
docker build \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \
--build-arg SPARK_VERSION=3.1.3 \
--build-arg JDK_VERSION=8u192 \
--build-arg JDK_URL=${JDK_URL} \
--build-arg no_proxy=${NO_PROXY} \
--rm --no-cache -t ${IMAGE}-spark-3.1.3:${TAG} .
docker push ${IMAGE}-spark-3.1.3:${TAG}
docker tag ${IMAGE}-spark-3.1.3:${TAG} ${IMAGE}:${TAG}
docker push ${IMAGE}:${TAG}
docker tag ${IMAGE}:${TAG} 10.239.45.10/arda/${IMAGE}-spark-3.1.3:${TAG}
docker push 10.239.45.10/arda/${IMAGE}-spark-3.1.3:${TAG}
docker rmi -f ${IMAGE}-spark-3.1.3:${TAG}