Skip to content

Commit

Permalink
Offer test or prod targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Feb 19, 2024
1 parent 69aae15 commit 899b078
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Build documentation

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
deployment_target:
type: choice
description: Deployment target
options:
- nodatime-test
- nodatime

jobs:
build-docs:
Expand All @@ -12,7 +20,6 @@ jobs:
GKE_ZONE: us-central1-a
REPOSITORY_ZONE: us-central1
REPOSITORY_NAME: nodatime-org
DEPLOYMENT_NAME: nodatime-test
IMAGE: nodatime.org

steps:
Expand Down Expand Up @@ -73,4 +80,4 @@ jobs:
# Push to GKE (using the auth we've already configured)
- name: Update GKE test deployment
run: |-
kubectl set image deployment nodatime-test nodatime-test=$IMAGE_TAG
kubectl set image deployment "${{ inputs.deployment_target }}" "${{ inputs.deployment_target }}"=$IMAGE_TAG

0 comments on commit 899b078

Please sign in to comment.