Skip to content

Commit e2b7c08

Browse files
committed
ironic-vnc-container: try syncing the assets in CI
1 parent 93e0c8e commit e2b7c08

26 files changed

+16
-1052
lines changed

.github/workflows/build-container-reuse.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ on:
3232
type: string
3333
default: '{{ defaultContext }}'
3434
description: 'Path to docker context'
35+
prebuild_script:
36+
required: false
37+
type: string
38+
default: ""
39+
description: 'path to shell script to run before building the containers'
40+
prebuild_script_working_dir:
41+
type: string
42+
default: "."
43+
description: 'directory which the prebuild_script will run'
3544

3645
jobs:
3746
build:
@@ -71,6 +80,11 @@ jobs:
7180
# that are arch specific so populate them at the index as well.
7281
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
7382

83+
- name: Run prebuild script
84+
if: ${{ inputs.prebuild_script != '' }}
85+
# working-directory: ${{ inputs.prebuild_script_working_dir }}
86+
run: "${{ inputs.prebuild_script }}"
87+
7488
- name: build and push container image
7589
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
7690
with:

.github/workflows/containers.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ jobs:
3939
target: ''
4040
dockerfile_path: Dockerfile
4141
context_path: "{{defaultContext}}:containers/ironic-vnc-container/"
42+
prebuild_script: ./containers/ironic-vnc-container/sync_from_upstream.sh
4243
uses: ./.github/workflows/build-container-reuse.yaml
4344
secrets: inherit
4445
with:
4546
container_name: ${{ matrix.container.name }}
4647
dockerfile_path: ${{ matrix.container.dockerfile_path || format('containers/{0}/Dockerfile', matrix.container.name) }}
4748
target: ${{ matrix.container.target }}
4849
context_path: ${{ matrix.container.context_path || '{{defaultContext}}' }}
50+
prebuild_script: ${{ matrix.container.prebuild_script }}

containers/ironic-vnc-container/Dockerfile

Lines changed: 0 additions & 37 deletions
This file was deleted.

containers/ironic-vnc-container/LICENSE

Lines changed: 0 additions & 176 deletions
This file was deleted.

containers/ironic-vnc-container/NOTICE

Lines changed: 0 additions & 3 deletions
This file was deleted.

containers/ironic-vnc-container/bin/cert-override.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

containers/ironic-vnc-container/bin/discover-app.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)