Skip to content

Commit

Permalink
WIP: temporary use kernel from previous run
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-sakhnov committed Oct 29, 2024
1 parent 3372e65 commit fdb487d
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,23 @@ jobs:
echo "autoscaler-agent=${{ env.IMG_AUTOSCALER_AGENT }}-${{matrix.arch}}:${{ inputs.tag }}" | tee -a $GITHUB_OUTPUT
echo "cluster-autoscaler=${{ env.IMG_CLUSTER_AUTOSCALER }}-${{matrix.arch}}:${{ inputs.tag }}" | tee -a $GITHUB_OUTPUT
vm-kernel:
# nb: use format(..) to catch both inputs.skip = true AND inputs.skip = 'true'.
if: ${{ format('{0}', inputs.skip) != 'true' }}
uses: ./.github/workflows/vm-kernel.yaml
with:
tag: ${{ inputs.kernel-image || inputs.tag }}
return-image-for-tag: ${{ inputs.kernel-image }}
arch: ${{ matrix.arch }}
strategy:
matrix:
arch: [ 'amd64', 'arm64' ]
secrets: inherit
# vm-kernel:
# # nb: use format(..) to catch both inputs.skip = true AND inputs.skip = 'true'.
# if: ${{ format('{0}', inputs.skip) != 'true' }}
# uses: ./.github/workflows/vm-kernel.yaml
# with:
# tag: ${{ inputs.kernel-image || inputs.tag }}
# return-image-for-tag: ${{ inputs.kernel-image }}
# arch: ${{ matrix.arch }}
# strategy:
# matrix:
# arch: [ 'amd64', 'arm64' ]
# secrets: inherit

build:
# nb: use format(..) to catch both inputs.skip = true AND inputs.skip = 'true'.
if: ${{ format('{0}', inputs.skip) != 'true' }}
needs: [ tags , vm-kernel ]
needs: [ tags ]
env:
GO_BASE_IMG: ${{ format('localhost:5000/neondatabase/autoscaling-go-base-{0}:dev', matrix.arch) }}
permissions:
Expand Down Expand Up @@ -213,7 +213,9 @@ jobs:
- name: Load VM kernel
env:
IMAGE: ${{format(needs.vm-kernel.outputs.image_placeholder, matrix.arch)}}
# IMAGE: ${{format(needs.vm-kernel.outputs.image_placeholder, matrix.arch)}}
# temporary always use image from one of the previous runs
IMAGE: ${{format('neondatabase/vm-kernel-{0}:3372e65.11573472293', matrix.arch)}}
run: |
docker pull --quiet $IMAGE
ID=$(docker create $IMAGE true)
Expand Down

0 comments on commit fdb487d

Please sign in to comment.