-
Notifications
You must be signed in to change notification settings - Fork 348
104 lines (89 loc) · 3.18 KB
/
agent-build-rust-env.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
on:
push:
branches:
- package-rust-env
paths:
- 'agent/docker/DockerfileToFix.build'
- 'agent/docker/DockerfileToFix-aarch64.build'
name: build agent env
jobs:
build_agent_env:
name: build agent env
runs-on: "cirun-aws-amd64-32c--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: install docker
# run: |
# curl -fsSL https://get.docker.com | bash
- name: docker version
run: |
docker version
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: "${{ github.repository_owner }}"
password: "${{ secrets.GHCR_PUSH_TOKEN }}"
- name: Log in to ALIYUN Docker Registry
uses: docker/login-action@v2
with:
registry: "${{ secrets.REGISTRY_ALIYUN_ADDR }}"
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
password: "${{ secrets.REGISTRY_PASS }}"
- name: Build and push deepflow agent env images
uses: docker/build-push-action@v2
with:
context: agent
push: true
file: agent/docker/DockerfileToFix.build
platforms: linux/amd64
tags: |
"ghcr.io/${{ github.repository_owner }}/rust-build:1.30"
"ghcr.io/${{ github.repository_owner }}/rust-build:latest"
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/public/rust-build:1.30"
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/public/rust-build:latest"
build_agent_env_arm64:
name: build agent env arm64
runs-on: "cirun-aws-arm64-32c--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: install docker
# run: |
# curl -fsSL https://get.docker.com | bash
- name: docker version
run: |
docker version
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: "${{ github.repository_owner }}"
password: "${{ secrets.GHCR_PUSH_TOKEN }}"
- name: Log in to ALIYUN Docker Registry
uses: docker/login-action@v2
with:
registry: "${{ secrets.REGISTRY_ALIYUN_ADDR }}"
username: "${{ secrets.REGISTRY_ALIYUN_USER }}"
password: "${{ secrets.REGISTRY_PASS }}"
- name: Build and push deepflow agent env image
uses: docker/build-push-action@v2
with:
context: agent
push: true
file: agent/docker/DockerfileToFix-aarch64.build
platforms: linux/arm64
tags: |
"ghcr.io/${{ github.repository_owner }}/rust-build:1.30-arm64"
"ghcr.io/${{ github.repository_owner }}/rust-build:latest-arm64"
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/public/rust-build:1.30-arm64"
"${{ secrets.REGISTRY_ALIYUN_ADDR }}/public/rust-build:latest-arm64"