Skip to content

Commit 86f12e5

Browse files
committed
fix outputs
1 parent dc2e285 commit 86f12e5

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.github/workflows/release_local_backend.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
description: "Tag image as latest"
88
type: boolean
99
required: true
10+
outputs:
11+
backend_x64_digest:
12+
description: "x64 image digest"
13+
value: ${{ jobs.read.outputs.result.digest['backend-x64'] }}
14+
backend_arm64_digest:
15+
description: "arm64 image digest"
16+
value: ${{ jobs.read.outputs.result.digest['backend-arm64'] }}
1017

1118
permissions:
1219
contents: read

.github/workflows/release_local_dashboard.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
description: "Tag image as latest"
88
type: boolean
99
required: true
10+
outputs:
11+
dashboard_x64_digest:
12+
description: "x64 image digest"
13+
value: ${{ jobs.read.outputs.result.digest['dashboard-x64'] }}
14+
dashboard_arm64_digest:
15+
description: "arm64 image digest"
16+
value: ${{ jobs.read.outputs.result.digest['dashboard-arm64'] }}
1017

1118
permissions:
1219
contents: read

.github/workflows/release_self_hosted_images.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
needs: release_backend
4040
uses: ./.github/workflows/test_self_hosted_backend.yml
4141
with:
42-
image_digest_x64: ${{ fromJson(needs.release_backend.outputs.result).digest['backend-x64'] }}
43-
image_digest_arm64: ${{ fromJson(needs.release_backend.outputs.result).digest['backend-arm64'] }}
42+
image_digest_x64: ${{ needs.release_backend.outputs.backend_x64_digest }}
43+
image_digest_arm64: ${{ needs.release_backend.outputs.backend_arm64_digest }}
4444

4545
tag_images:
4646
needs: [release_backend, release_dashboard, test_backend]
@@ -58,27 +58,27 @@ jobs:
5858
- name: Tag and push backend manifest
5959
run: |
6060
docker manifest create ghcr.io/get-convex/convex-backend:${{ github.sha }} \
61-
--amend ghcr.io/get-convex/convex-backend@${{ fromJson(needs.release_backend.outputs.result).digest['backend-x64'] }} \
62-
--amend ghcr.io/get-convex/convex-backend@${{ fromJson(needs.release_backend.outputs.result).digest['backend-arm64'] }}
61+
--amend ghcr.io/get-convex/convex-backend@${{ needs.release_backend.outputs.backend_x64_digest }} \
62+
--amend ghcr.io/get-convex/convex-backend@${{ needs.release_backend.outputs.backend_arm64_digest }}
6363
docker manifest push ghcr.io/get-convex/convex-backend:${{ github.sha }}
6464
6565
if [[ "${{ github.event_name == 'workflow_dispatch' && inputs.tag_latest || false }}" == "true" ]]; then
6666
docker manifest create ghcr.io/get-convex/convex-backend:latest \
67-
--amend ghcr.io/get-convex/convex-backend@${{ fromJson(needs.release_backend.outputs.result).digest['backend-x64'] }} \
68-
--amend ghcr.io/get-convex/convex-backend@${{ fromJson(needs.release_backend.outputs.result).digest['backend-arm64'] }}
67+
--amend ghcr.io/get-convex/convex-backend@${{ needs.release_backend.outputs.backend_x64_digest }} \
68+
--amend ghcr.io/get-convex/convex-backend@${{ needs.release_backend.outputs.backend_arm64_digest }}
6969
docker manifest push ghcr.io/get-convex/convex-backend:latest
7070
fi
7171
7272
- name: Tag and push dashboard manifest
7373
run: |
7474
docker manifest create ghcr.io/get-convex/convex-dashboard:${{ github.sha }} \
75-
--amend ghcr.io/get-convex/convex-dashboard@${{ fromJson(needs.release_dashboard.outputs.result).digest['dashboard-x64'] }} \
76-
--amend ghcr.io/get-convex/convex-dashboard@${{ fromJson(needs.release_dashboard.outputs.result).digest['dashboard-arm64'] }}
75+
--amend ghcr.io/get-convex/convex-dashboard@${{ needs.release_dashboard.outputs.dashboard_x64_digest }} \
76+
--amend ghcr.io/get-convex/convex-dashboard@${{ needs.release_dashboard.outputs.dashboard_arm64_digest }}
7777
docker manifest push ghcr.io/get-convex/convex-dashboard:${{ github.sha }}
7878
7979
if [[ "${{ github.event_name == 'workflow_dispatch' && inputs.tag_latest || false }}" == "true" ]]; then
8080
docker manifest create ghcr.io/get-convex/convex-dashboard:latest \
81-
--amend ghcr.io/get-convex/convex-dashboard@${{ fromJson(needs.release_dashboard.outputs.result).digest['dashboard-x64'] }} \
82-
--amend ghcr.io/get-convex/convex-dashboard@${{ fromJson(needs.release_dashboard.outputs.result).digest['dashboard-arm64'] }}
81+
--amend ghcr.io/get-convex/convex-dashboard@${{ needs.release_dashboard.outputs.dashboard_x64_digest }} \
82+
--amend ghcr.io/get-convex/convex-dashboard@${{ needs.release_dashboard.outputs.dashboard_arm64_digest }}
8383
docker manifest push ghcr.io/get-convex/convex-dashboard:latest
8484
fi

0 commit comments

Comments
 (0)