https://github.com/timescale/cloud-actions
Cloud public actions
https://github.com/timescale/cloud-actions
Last synced: 8 months ago
JSON representation
Cloud public actions
- Host: GitHub
- URL: https://github.com/timescale/cloud-actions
- Owner: timescale
- Created: 2021-10-26T16:15:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-06T15:47:54.000Z (8 months ago)
- Last Synced: 2025-05-07T04:58:39.300Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 90.8 KB
- Stars: 4
- Watchers: 23
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloud-actions
Timescale cloud playground for GH Actions and shared workflows. With
regards to shared workflows, see some usage examples below.
### workflows usage example
#### Example of deploy.yaml caller (upon manual trigger)
```yaml
name: Deploy Caller
on:
workflow_dispatch:
inputs:
env:
description: 'Your Env: prod|dev'
required: true
default: 'dev'
tag:
description: 'Tag'
required: true
default: ''
region:
description: 'AWS Region: all|us-east-1|eu-central-1'
required: true
default: 'us-east-1'
jobs:
deploy:
name: Deploy
uses: timescale/cloud-actions/.github/workflows/deploy.yaml@main
with:
env: ${{ github.event.inputs.env }}
region: ${{ github.event.inputs.region }}
tag: ${{ github.event.inputs.tag }}
registry: myregsitry.dockerhub.com/myapp
chart_name: myapp-chart
chart_namespace: myapp-namespace
secrets:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
ORG_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
ORG_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ORG_KUBECONFIG_DEV: ${{ secrets.KUBECONFIG_DEV }}
ORG_KUBECONFIG_DEV_EU_WEST_1: ${{ secrets.KUBECONFIG_DEV_EU_WEST_1 }}
ORG_KUBECONFIG_DEV_US_WEST_2: ${{ secrets.KUBECONFIG_DEV_US_WEST_2 }}
ORG_KUBECONFIG_PROD: ${{ secrets.KUBECONFIG_PROD }}
ORG_KUBECONFIG_PROD_EU_WEST_1: ${{ secrets.KUBECONFIG_PROD_EU_WEST_1 }}
ORG_KUBECONFIG_PROD_US_WEST_2: ${{ secrets.KUBECONFIG_PROD_US_WEST_2 }}
ORG_KUBECONFIG_STAGE: ${{ secrets.KUBECONFIG_STAGE }}
```
#### Example of build.yaml caller (upon tag push event)
```yaml
name: Build Caller
on:
push:
tags:
- "v*"
jobs:
tag:
runs-on: runner-label
name: Retrieve Tag
outputs:
tagjob: ${{ steps.git_tag.outputs.TAG }}
steps:
- name: Setup | Git Tag
id: git_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
shell: bash
release:
name: Build Docker
needs: tag
uses: timescale/cloud-actions/.github/workflows/build.yaml@main
with:
region: us-east-1
tags: |
${{ needs.tag.outputs.tagjob }}
registry: myregsitry.dockerhub.com/myapp
dockerfile_path: ./Dockerfile
docker_target: release
secrets:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
```