@@ -116,62 +116,6 @@ jobs:
116
116
antrea/antrea-agent-ubuntu-amd64:"${DOCKER_TAG}"
117
117
docker manifest push --purge antrea/antrea-agent-ubuntu:"${DOCKER_TAG}"
118
118
119
- build-ubi :
120
- needs : check-env
121
- if : ${{ needs.check-env.outputs.has_changes == 'yes' || github.event_name == 'push' }}
122
- runs-on : ubuntu-latest
123
- env :
124
- DOCKER_TAG : latest
125
- steps :
126
- - name : Free disk space
127
- # https://github.com/actions/virtual-environments/issues/709
128
- run : |
129
- sudo apt-get clean
130
- df -h
131
- - uses : actions/checkout@v4
132
- with :
133
- show-progress : false
134
- - name : Set up Docker Buildx
135
- uses : docker/setup-buildx-action@v3
136
- with :
137
- driver : ${{ needs.check-env.outputs.docker_driver }}
138
- - uses : actions/setup-go@v5
139
- with :
140
- go-version-file : ' go.mod'
141
- - name : Build Antrea UBI9 Docker image without pushing to registry
142
- if : ${{ needs.check-env.outputs.push_needed == 'false' }}
143
- run : |
144
- ./hack/build-antrea-linux-all.sh --pull --distro ubi
145
- - name : Build and push Antrea UBI9 Docker image to registry
146
- if : ${{ needs.check-env.outputs.push_needed == 'true' }}
147
- env :
148
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
149
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
150
- run : |
151
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
152
- ./hack/build-antrea-linux-all.sh --pull --push-base-images --distro ubi
153
- docker push antrea/antrea-agent-ubi:"${DOCKER_TAG}"
154
- docker push antrea/antrea-controller-ubi:"${DOCKER_TAG}"
155
-
156
- build-scale :
157
- needs : check-env
158
- if : ${{ needs.check-env.outputs.has_changes == 'yes' || github.event_name == 'push' }}
159
- runs-on : [ubuntu-latest]
160
- steps :
161
- - uses : actions/checkout@v4
162
- with :
163
- show-progress : false
164
- - name : Build Antrea Agent Simulator Docker image
165
- run : make build-scale-simulator
166
- - name : Push Antrea Agent Simulator Docker image to registry
167
- if : ${{ needs.check-env.outputs.push_needed == 'true' }}
168
- env :
169
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
170
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
171
- run : |
172
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
173
- docker push antrea/antrea-ubuntu-simulator:latest
174
-
175
119
build-windows :
176
120
needs : check-env
177
121
if : ${{ needs.check-env.outputs.has_changes == 'yes' || github.event_name == 'push' }}
0 commit comments