-
Notifications
You must be signed in to change notification settings - Fork 453
73 lines (66 loc) · 1.77 KB
/
build-kube-ovn-base-dpdk.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
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
name: Build Base DPDK
on:
workflow_dispatch:
schedule:
- cron: "20 19 * * *"
jobs:
build-amd64:
strategy:
fail-fast: false
matrix:
branch:
- master
- release-1.12-cmss
- release-1.12
name: Build AMD64
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- uses: docker/setup-buildx-action@v3
- name: Build
run: |
make base-amd64-dpdk
make base-tar-amd64-dpdk
- name: Upload image to artifact
uses: actions/upload-artifact@v3
with:
name: image-amd64-dpdk-${{ matrix.branch }}
path: image-amd64-dpdk.tar
retention-days: 7
push:
strategy:
fail-fast: false
matrix:
branch:
- master
- release-1.12-cmss
- release-1.12
needs:
- build-amd64
name: push
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Download image
uses: actions/download-artifact@v3
with:
name: image-amd64-dpdk-${{ matrix.branch }}
- name: Load Image
run: |
docker load --input image-amd64-dpdk.tar
- name: Push
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
COMMIT: ${{ github.sha }}
run: |
cat VERSION
TAG=$(cat VERSION)
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker images
docker tag kubeovn/kube-ovn-base:$TAG-amd64-dpdk kubeovn/kube-ovn-base:$TAG-dpdk
docker push kubeovn/kube-ovn-base:$TAG-dpdk