Skip to content

Instantly share code, notes, and snippets.

@kferrone
Created May 13, 2024 17:25
Show Gist options
  • Save kferrone/7de054731e89cd6a90b4c358056f08c5 to your computer and use it in GitHub Desktop.
Save kferrone/7de054731e89cd6a90b4c358056f08c5 to your computer and use it in GitHub Desktop.
name: Update Service
on:
workflow_dispatch:
inputs:
environment:
description: The environment to deploy to
type: environment
default: dev
required: true
image:
description: The full image
type: string
required: true
jobs:
update_service:
name: Update Service
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
env:
DUPLO_TOKEN: ${{ secrets.DUPLO_TOKEN }}
DUPLO_HOST: ${{ vars.DUPLO_HOST }}
DUPLO_TENANT: ${{ vars.DUPLO_TENANT }}
steps:
# install and login to the cloud
- name: Duplo Setup
uses: duplocloud/actions/[email protected]
# only required on gcp and azure
with:
account-id: ${{ vars.CLOUD_ACCOUNT }}
credentials: ${{ secrets.CLOUD_CREDENTIALS }}
# uses duploctl from above
- name: Update Service
uses: duplocloud/actions/[email protected]
with:
name: my-service
image: ${{ inputs.image }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment