Skip to content

Commit

Permalink
Add inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx committed Oct 28, 2024
1 parent be183c5 commit 24d0f40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ inputs:
If set to a GHCR registry, the action will push to the GitHub Container Registry of the repository.
Using GHCR requires the `packages: write` permission to push to the registry.
required: false
push:
description: 'If `true`, the action will push the Docker image to the registry.'
required: false
default: 'true'
AZURE_TENANT_ID:
description: 'Tenant ID of the Azure Container Registry to push to. Only required if using your own ACR.'
required: false
Expand Down Expand Up @@ -202,6 +206,7 @@ runs:
# Pass optional inputs as environment variables, since they can be empty.
# The CLI does not accept empty strings passed to the flags, e.g. `--go-main-package-dir ''` will cause an error.
3LV_SYSTEM_NAME: ${{ inputs.namespace }}
3LV_PUSH: ${{ inputs.push }}
3LV_REGISTRY: ${{ inputs.registry }}
3LV_BUILD_CONTEXT: ${{ inputs.docker-build-context }}
3LV_GO_MAIN_PACKAGE_DIR: ${{ inputs.go-main-package-dir }}
Expand Down
5 changes: 5 additions & 0 deletions deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ inputs:
description: 'Location of the GKE cluster to deploy to.'
required: false
default: 'europe-west1'
GK_USE_INTERNAL_IP:
description: 'If `true`, the action will set the `--internal-ip` flag when getting credentials for GKE.'
required: false
default: 'false'

runs:
using: 'composite'
Expand Down Expand Up @@ -166,6 +170,7 @@ runs:
3LV_GKE_PROJECT_ID: ${{ inputs.GKE_PROJECT_ID }}
3LV_GKE_CLUSTER_NAME: ${{ inputs.GKE_CLUSTER_NAME }}
3LV_GKE_CLUSTER_LOCATION: ${{ inputs.GKE_CLUSTER_LOCATION }}
3LV_GKE_USE_INTERNAL_IP: '${{ inputs.GKE_USE_INTERNAL_IP }}'

- name: Notify Slack on failure
if: ${{ failure() && inputs.slack-channel != '' }}
Expand Down

0 comments on commit 24d0f40

Please sign in to comment.