From 7399b3a65b673c5c34dede95606ab7a429bc1da2 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Tue, 3 Sep 2024 12:12:00 +0200 Subject: [PATCH] chore: save kustomize --- .github/workflows/container.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 531a4eb..df53598 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -60,10 +60,26 @@ jobs: uses: docker/build-push-action@v6 with: context: . - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: linux/amd64 #,linux/arm64,linux/arm/v7 # Reuse the builder cache-from: type=gha cache-to: type=gha,mode=max push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + + - name: "Update Deployment Image Tag" # [3] + working-directory: "deploy" + run: | + # Get any tags that were pushed (XXX: Get sha or tag one) + # Hint: tags are actually full image names with tags here + image_tag=$(echo ${{ steps.meta.outputs.tags }} | cut -d',' -f1) + + kustomize edit set image node-specific-sizing=$image_tag + + kustomize build . > deploy.yaml + + - name: "Upload Deployment YAML" # [4] + uses: actions/upload-artifact@v4 + with: + path: deploy/deploy.yaml