Skip to content

Commit c31c3f6

Browse files
authored
Merge pull request #36621 from risk-hsy/SmithG3_risk/WITH_SYMBOLS
feat(docker): add support for building Docker images with symbols
2 parents 686cb88 + ad95491 commit c31c3f6

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/build-docker-internal.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,39 @@ jobs:
269269
${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln:${{ steps.vars.outputs.hpcc_version }}
270270
cache-from: |
271271
type=registry,ref=hpccsystems/platform-core-${{ inputs.os }}:${{ steps.vars.outputs.candidate_base_branch }}
272+
273+
- name: Locate withsymbols_k8s deb file
274+
if: ${{ inputs.build-docker-image}}
275+
id: ln-container-withsymbols
276+
run: |
277+
withsymbols_k8s_pkg_path=$(ls -t ${{ steps.vars.outputs.folder_build }}/*64_withsymbols_k8s.deb 2>/dev/null | head -1)
278+
withsymbols_k8s_pkg_file=$(basename "$withsymbols_k8s_pkg_path")
279+
echo "withsymbols_k8s_pkg_file=$withsymbols_k8s_pkg_file" >> $GITHUB_OUTPUT
280+
echo "$withsymbols_k8s_pkg_file"
272281
282+
- name: Create Docker Image With Symbols
283+
uses: docker/build-push-action@v5
284+
if: ${{ inputs.build-docker-image }}
285+
with:
286+
builder: ${{ steps.buildx.outputs.name }}
287+
file: ${{ steps.vars.outputs.folder_platform }}/dockerfiles/platform-core-${{ inputs.os }}/Dockerfile
288+
context: ${{ steps.vars.outputs.folder_build }}
289+
push: false
290+
load: true
291+
build-args: |
292+
PKG_FILE=${{ steps.ln-container-withsymbols.outputs.withsymbols_k8s_pkg_file }}
293+
tags: |
294+
${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln-withsymbols:${{ steps.vars.outputs.hpcc_version }}
295+
cache-from: |
296+
type=registry,ref=hpccsystems/platform-core-${{ inputs.os }}:${{ steps.vars.outputs.candidate_base_branch }}
297+
273298
- name: JFrog Docker Push and Publish
274299
if: ${{ inputs.build-docker-image && github.repository_owner == 'hpcc-systems' }}
275300
run: |
276301
jf docker push ${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln:${{ steps.vars.outputs.hpcc_version }} --build-name=platform-core-ln --build-number=${{ steps.vars.outputs.hpcc_version }} --project=hpccpl
277302
jf rt bp platform-core-ln ${{ steps.vars.outputs.hpcc_version }} --project=hpccpl
303+
jf docker push ${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln-withsymbols:${{ steps.vars.outputs.hpcc_version }} --build-name=platform-core-ln-withsymbols --build-number=${{ steps.vars.outputs.hpcc_version }} --project=hpccpl
304+
jf rt bp platform-core-ln-withsymbols ${{ steps.vars.outputs.hpcc_version }} --project=hpccpl
278305
279306
- name: Cleanup Environment
280307
if: always()

dockerfiles/rule-hpccpl-docker-local-point-over-6mo.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"items.find":
66
{
77
"repo": "hpccpl-docker-local",
8-
"path": "platform-core-ln",
8+
"path": {"$match": "platform-core-ln*"},
99
"created": {"$before": "6mo"},
1010
"type": "folder",
1111
"name": {"$nmatch": "*-latest"},

0 commit comments

Comments
 (0)