Skip to content

Commit

Permalink
chore: save kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed Sep 3, 2024
1 parent 5ef241d commit 7399b3a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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

0 comments on commit 7399b3a

Please sign in to comment.