11name : Docker Multi-arch Manifests
22on :
33 workflow_run :
4- workflows :
4+ workflows :
55 - " Docker Proxy AMD64"
66 - " Docker Proxy ARM64"
77 - " Docker Full AMD64"
88 - " Docker Full ARM64"
9+ - " Docker Offline AMD64"
10+ - " Docker Offline ARM64"
911 types : [completed]
1012
1113jobs :
2325 script : |
2426 const workflows = [
2527 "Docker Proxy AMD64",
26- "Docker Proxy ARM64",
28+ "Docker Proxy ARM64",
2729 "Docker Full AMD64",
28- "Docker Full ARM64"
30+ "Docker Full ARM64",
31+ "Docker Offline AMD64",
32+ "Docker Offline ARM64"
2933 ];
3034
3135 const runId = context.payload.workflow_run.id;
@@ -107,17 +111,35 @@ jobs:
107111 - name : Create full multi-arch manifest
108112 run : |
109113 VERSION="${{ needs.check-builds.outputs.version }}"
110-
114+
111115 # Create versioned full manifest
112116 docker manifest create ghcr.io/${{ github.repository }}:${VERSION} \
113117 ghcr.io/${{ github.repository }}:${VERSION}-amd64 \
114118 ghcr.io/${{ github.repository }}:${VERSION}-arm64
115-
119+
116120 docker manifest push ghcr.io/${{ github.repository }}:${VERSION}
117-
121+
118122 # Create latest full manifest
119123 docker manifest create ghcr.io/${{ github.repository }}:latest \
120124 ghcr.io/${{ github.repository }}:latest-amd64 \
121125 ghcr.io/${{ github.repository }}:latest-arm64
122-
123- docker manifest push ghcr.io/${{ github.repository }}:latest
126+
127+ docker manifest push ghcr.io/${{ github.repository }}:latest
128+
129+ - name : Create offline multi-arch manifest
130+ run : |
131+ VERSION="${{ needs.check-builds.outputs.version }}"
132+
133+ # Create versioned offline manifest
134+ docker manifest create ghcr.io/${{ github.repository }}:${VERSION}-offline \
135+ ghcr.io/${{ github.repository }}:${VERSION}-offline-amd64 \
136+ ghcr.io/${{ github.repository }}:${VERSION}-offline-arm64
137+
138+ docker manifest push ghcr.io/${{ github.repository }}:${VERSION}-offline
139+
140+ # Create latest offline manifest
141+ docker manifest create ghcr.io/${{ github.repository }}:latest-offline \
142+ ghcr.io/${{ github.repository }}:latest-offline-amd64 \
143+ ghcr.io/${{ github.repository }}:latest-offline-arm64
144+
145+ docker manifest push ghcr.io/${{ github.repository }}:latest-offline
0 commit comments