DO NOT MERGE: test cache-from

This commit is contained in:
Alexander Bayandin
2024-09-25 12:19:58 +01:00
parent a26cc29d92
commit ebea319d64
3 changed files with 7 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
arch: [ x64, arm64 ]
arch: [ x64 ]
runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', matrix.arch == 'arm64' && 'large-arm64' || 'large')) }}
@@ -79,7 +79,9 @@ jobs:
push: true
pull: true
file: Dockerfile.build-tools
cache-from: type=registry,ref=cache.neon.build/build-tools:cache-${{ matrix.arch }}
cache-from: |
type=registry,ref=cache.neon.build/build-tools:cache-${{ matrix.arch }}
type=registry,ref=cache.neon.build/build-tools:cache-${{ matrix.arch }}-does-not-exist
cache-to: ${{ github.ref_name == 'main' && format('type=registry,ref=cache.neon.build/build-tools:cache-{0},mode=max', matrix.arch) || '' }}
tags: neondatabase/build-tools:${{ inputs.image-tag }}-${{ matrix.arch }}

View File

@@ -6,6 +6,7 @@ on:
- main
- release
- release-proxy
- bayandin/test
pull_request:
defaults:
@@ -27,7 +28,7 @@ env:
jobs:
check-permissions:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'run-no-ci') }}
if: false
uses: ./.github/workflows/check-permissions.yml
with:
github-event-name: ${{ github.event_name }}
@@ -78,7 +79,6 @@ jobs:
id: build-tag
check-build-tools-image:
needs: [ check-permissions ]
uses: ./.github/workflows/check-build-tools-image.yml
build-build-tools-image:

View File

@@ -33,7 +33,7 @@ jobs:
IMAGE_TAG: |
${{ hashFiles('Dockerfile.build-tools',
'.github/workflows/check-build-tools-image.yml',
'.github/workflows/build-build-tools-image.yml') }}
'.github/workflows/build-build-tools-image.yml') }}-test
run: |
echo "image-tag=${IMAGE_TAG}" | tee -a $GITHUB_OUTPUT