Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Bayandin
d31e272919 DO NOT MERGE: test cache-from 2024-09-25 13:52:44 +01:00
Alexander Bayandin
ebea319d64 DO NOT MERGE: test cache-from 2024-09-25 12:19:58 +01:00
3 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

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