Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.14 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.14 KB

Tag-based Deployment

This repository it's a basic example of the tag-based deployment for monorepos using a selector script an Github Actions for deployments.

SETUP

This repository contains secrets that it have to be configure first before runing it.

All secrets are stored in Github Secrets.

GITHUB_TOKEN: A personal Github token to allow git tag and git push actions for the selector script

AWS_ACCESS_KEY_ID: The AWS Access Key ID to deploy the serverless functions

AWS_SECRET_ACCESS_KEY: The AWS Secret Access Key to deploy the serverless functions

DEMO

In order to run a demo for the tag-based deployment you just have to go to one of the packages and edit the package.json by increasing or decreasing the version number.

Commit the changes and push it.

This will run the selector workflow in Github Actions and trigger the deployment workflow from the package that has changed in the commit.

The tags can be reviewd under the tags section.

The workflows running for each commit will also show on the commits section.