This is no longer actively maintained. Migrate to this action: duplocloud/actions/setup
This action will retrieve just-in-time AWS credentials from Duplo
Here is an example of what to put in your .github/workflows/build-and-deploy.yml
file to use this workflow.
name: Build and Deploy
on:
push:
branches:
- develop # branch to trigger on
jobs:
deploy:
# This example get AWS credentials, then lists all S3 buckets.
name: Deploy with DuploCloud
runs-on: ubuntu-latest
steps:
- name: aws-jit
uses: duplocloud/ghactions-aws-jit@master
with:
duplo_host: https://mysystem.duplocloud.net
duplo_token: ${{ secrets.DUPLO_TOKEN }}
tenant: default
- name: list-s3
run: aws s3 ls