Skip to content

Commit

Permalink
A0-2896: Kustomize variable as input in deploy action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr authored Sep 22, 2023
1 parent d2bbc11 commit e680afa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/deploy-to-devnet/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
required: true
github_token:
required: true
kustomize_version:
required: false
default: "5.1.1"

runs:
using: composite
Expand Down Expand Up @@ -42,7 +45,7 @@ runs:
- name: KUSTOMIZE | Init kustomize
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: ${{ vars.KUSTOMIZE_VERSION }}
kustomize-version: ${{ inputs.kustomize_version }}

- name: KUSTOMIZE | Update docker image tag for squid
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy-to-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
aws_devnet_access_key_id: ${{ secrets.AWS_DEVNET_ACCESS_KEY_ID }}
aws_devnet_secret_access_key: ${{ secrets.AWS_DEVNET_SECRET_ACCESS_KEY }}
github_token: ${{ secrets.CI_GH_TOKEN }}
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}

deploy_api:
name: Deploy API
Expand All @@ -83,3 +84,4 @@ jobs:
aws_devnet_access_key_id: ${{ secrets.AWS_DEVNET_ACCESS_KEY_ID }}
aws_devnet_secret_access_key: ${{ secrets.AWS_DEVNET_SECRET_ACCESS_KEY }}
github_token: ${{ secrets.CI_GH_TOKEN }}
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}

0 comments on commit e680afa

Please sign in to comment.