Skip to content

Commit

Permalink
tmp: try fixing pull issues (pt 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnoff committed Sep 12, 2024
1 parent e122cbf commit 3cfb9f8
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ jobs:
if: ${{ format('{0}', inputs.skip) != 'true' }}
needs: [ tags, vm-kernel ]
runs-on: [ self-hosted, gen3, large ]

services:
image: registry:2
ports:
- 5000:5000

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -179,12 +185,12 @@ jobs:
with:
context: .
platforms: linux/amd64
push: false
push: true
load: true
file: Dockerfile.go-base
cache-from: type=registry,ref=cache.neon.build/autoscaling-go-base:cache
cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/autoscaling-go-base:cache,mode=max' || '' }}
tags: neondatabase/autoscaling-go-base:dev
tags: localhost:5000/autoscaling-go-base:dev

- name: Debug stuff
run: docker images -a
Expand All @@ -201,7 +207,11 @@ jobs:
# cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/neonvm-runner:cache,mode=max' || '' }}
tags: ${{ needs.tags.outputs.runner }}
build-args: |
<<<<<<< Updated upstream

Check failure on line 210 in .github/workflows/build-images.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/build-images.yaml#L210

could not parse as YAML: yaml: line 210: could not find expected ':' [syntax-check]
Raw output
.github/workflows/build-images.yaml:210:0: could not parse as YAML: yaml: line 210: could not find expected ':' [syntax-check]
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev@${{ steps.build-go-dependencies-image.outputs.digest }}
=======
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
>>>>>>> Stashed changes

- name: Generate neonvm-controller build tags
id: controller-build-tags
Expand All @@ -226,7 +236,7 @@ jobs:
# cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/neonvm-controller:cache,mode=max' || '' }}
tags: ${{ needs.tags.outputs.controller }}
build-args: |
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
VM_RUNNER_IMAGE=${{ needs.tags.outputs.runner }}
BUILDTAGS=${{ steps.controller-build-tags.outputs.buildtags }}
Expand All @@ -242,7 +252,7 @@ jobs:
# cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/neonvm-vxlan-controller:cache,mode=max' || '' }}
tags: ${{ needs.tags.outputs.vxlan-controller }}
build-args: |
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
- name: Build and push autoscale-scheduler image
uses: docker/build-push-action@v6
Expand All @@ -256,7 +266,7 @@ jobs:
# cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/autoscale-scheduler:cache,mode=max' || '' }}
tags: ${{ needs.tags.outputs.scheduler }}
build-args: |
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
GIT_INFO=${{ steps.get-git-info.outputs.info }}:${{ inputs.tag }}
- name: Build and push autoscaler-agent image
Expand All @@ -271,7 +281,7 @@ jobs:
# cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/autoscaler-agent:cache,mode=max' || '' }}
tags: ${{ needs.tags.outputs.autoscaler-agent }}
build-args: |
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
GIT_INFO=${{ steps.get-git-info.outputs.info }}
- name: Build and push cluster-autoscaler image
Expand All @@ -286,7 +296,7 @@ jobs:
cache-from: type=registry,ref=cache.neon.build/cluster-autoscaler-neonvm:cache
cache-to: ${{ github.ref_name == 'main' && 'type=registry,ref=cache.neon.build/cluster-autoscaler-neonvm:cache,mode=max' || '' }}
build-args: |
GO_BASE_IMG=neondatabase/autoscaling-go-base:dev
GO_BASE_IMG=localhost:5000/autoscaling-go-base:dev
CA_GIT_TAG=${{ steps.get-ca-tag.outputs.tag }}
- name: Copy all images to ECR
Expand Down

0 comments on commit 3cfb9f8

Please sign in to comment.