Skip to content

Commit f7e1356

Browse files
[CI] connector image publish fix
Signed-off-by: Future-Outlier <eric901201@gmail.com>
1 parent 9a65c7d commit f7e1356

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/build_image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
cache-from: type=gha
4848
cache-to: type=gha,mode=max
4949

50-
build-and-push-flyteagent-images-manual:
50+
build-and-push-flyteconnector-images-manual:
5151
runs-on: ubuntu-latest
5252
steps:
5353
- uses: actions/checkout@v4
@@ -64,12 +64,12 @@ jobs:
6464
registry: ghcr.io
6565
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
6666
password: "${{ secrets.FLYTE_BOT_PAT }}"
67-
- name: Prepare Flyte Agent Image Names
68-
id: flyteagent-names
67+
- name: Prepare Flyte Connector Image Names
68+
id: flyteconnector-names
6969
uses: docker/metadata-action@v3
7070
with:
7171
images: |
72-
ghcr.io/${{ github.repository_owner }}/flyteagent
72+
ghcr.io/${{ github.repository_owner }}/flyteconnector
7373
tags: |
7474
${{ github.sha }}
7575
- name: Push External Plugin Service Image to GitHub Registry
@@ -78,7 +78,7 @@ jobs:
7878
context: "."
7979
platforms: linux/arm64, linux/amd64
8080
push: true
81-
tags: ${{ steps.flyteagent-names.outputs.tags }}
81+
tags: ${{ steps.flyteconnector-names.outputs.tags }}
8282
build-args: |
8383
VERSION=${{ github.sha }}
8484
file: ./Dockerfile.connector

.github/workflows/pythonpublish.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
cache-from: type=gha
171171
cache-to: type=gha,mode=max
172172

173-
build-and-push-flyteagent-images:
173+
build-and-push-flyteconnector-images:
174174
runs-on: ubuntu-latest
175175
needs: deploy
176176
steps:
@@ -189,50 +189,50 @@ jobs:
189189
registry: ghcr.io
190190
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
191191
password: "${{ secrets.FLYTE_BOT_PAT }}"
192-
- name: Prepare Flyte Agent Slim Image Names
193-
id: flyteagent-slim-names
192+
- name: Prepare Flyte Connector Slim Image Names
193+
id: flyteconnector-slim-names
194194
uses: docker/metadata-action@v3
195195
with:
196196
images: |
197-
ghcr.io/${{ github.repository_owner }}/flyteagent-slim
197+
ghcr.io/${{ github.repository_owner }}/flyteconnector-slim
198198
tags: |
199199
latest
200200
${{ github.sha }}
201201
${{ needs.deploy.outputs.version }}
202-
- name: Prepare Flyte Agent Image Names
203-
id: flyteagent-names
202+
- name: Prepare Flyte Connector Image Names
203+
id: flyteconnector-names
204204
uses: docker/metadata-action@v3
205205
with:
206206
images: |
207-
ghcr.io/${{ github.repository_owner }}/flyteagent
207+
ghcr.io/${{ github.repository_owner }}/flyteconnector
208208
tags: |
209209
latest
210210
${{ github.sha }}
211211
${{ needs.deploy.outputs.version }}
212-
- name: Push flyteagent-slim Image to GitHub Registry
212+
- name: Push flyteconnector-slim Image to GitHub Registry
213213
uses: docker/build-push-action@v2
214214
with:
215215
context: "."
216216
platforms: linux/arm64, linux/amd64
217217
target: connector-slim
218218
push: ${{ github.event_name == 'release' }}
219-
tags: ${{ steps.flyteagent-slim-names.outputs.tags }}
219+
tags: ${{ steps.flyteconnector-slim-names.outputs.tags }}
220220
build-args: |
221221
VERSION=${{ needs.deploy.outputs.version }}
222222
file: ./Dockerfile.connector
223223
cache-from: type=gha
224224
cache-to: type=gha,mode=max
225-
- name: Confirm Agent can start
225+
- name: Confirm Connector can start
226226
run: |
227-
docker run --rm ghcr.io/${{ github.repository_owner }}/flyteagent-slim:${{ github.sha }} pyflyte serve agent --port 8000 --timeout 1
228-
- name: Push flyteagent-all Image to GitHub Registry
227+
docker run --rm ghcr.io/${{ github.repository_owner }}/flyteconnector-slim:${{ github.sha }} pyflyte serve connector --port 8000 --timeout 1
228+
- name: Push flyteconnector-all Image to GitHub Registry
229229
uses: docker/build-push-action@v2
230230
with:
231231
context: "."
232232
platforms: linux/arm64, linux/amd64
233-
target: agent-all
233+
target: connector-all
234234
push: ${{ github.event_name == 'release' }}
235-
tags: ${{ steps.flyteagent-names.outputs.tags }}
235+
tags: ${{ steps.flyteconnector-names.outputs.tags }}
236236
build-args: |
237237
VERSION=${{ needs.deploy.outputs.version }}
238238
file: ./Dockerfile.connector

0 commit comments

Comments
 (0)