https://github.com/hausgold/actions
Some fancy and reusable Github Actions for our workflows
https://github.com/hausgold/actions
github-actions glue-code infrastructure utilities
Last synced: about 1 year ago
JSON representation
Some fancy and reusable Github Actions for our workflows
- Host: GitHub
- URL: https://github.com/hausgold/actions
- Owner: hausgold
- Created: 2020-02-18T07:54:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T09:48:08.000Z (over 1 year ago)
- Last Synced: 2025-01-04T15:34:50.201Z (over 1 year ago)
- Topics: github-actions, glue-code, infrastructure, utilities
- Language: JavaScript
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

This project is dedicated to bundle our shared Github Actions and it serves
some trampoline actions to other HAUSGOLD internals which are not public.
- [Compound Actions](#compound-actions)
- [Generic Continuous Delivery](#generic-continuous-delivery)
- [Standalone Actions](#standalone-actions)
- [Fetch application settings](#fetch-application-settings)
- [Run a Potpourri script](#run-a-potpourri-script)
## Compound Actions
We provide some compound actions to shortcut the configuration overhead on
Github Actions. Unfortunately, we are not allowed (at the time of writing,
2020-02) to use YAML anchors and aliases which result in heavy copy-paste
configurations. Our compound actions will ease the pain and provide easy to use
single-steps.
### Generic Continuous Delivery
This compound action makes use of the [Fetch application
settings](#fetch-application-settings) action and the [Run a Potpourri
script](#run-a-potpourri-script) action.
```yaml
steps:
- name: Prepare the virtual environment
uses: hausgold/actions/ci@master
with:
clone_token: '${{ secrets.CLONE_TOKEN }}'
settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
settings: '${{ github.event.repository.name }}'
target: ci/sd-deploy
```
## Standalone Actions
Most commonly on Github Actions is the usage of standalone actions which are
performed on after another while having the user the configure each step, even
on multiple jobs.
### Fetch application settings
This action allows you to fetch the application settings from our
[Settings](https://github.com/hausgold/settings) repository by specifing the
application name and the Github clone token. Make sure your application
repository have set the `CLONE_TOKEN` secret correctly. Afterwards you
can access all settings via regular environment variables.
```yaml
steps:
- name: Fetch all application settings
uses: hausgold/actions/settings@master
with:
clone_token: '${{ secrets.CLONE_TOKEN }}'
secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
app: '${{ github.event.repository.name }}'
```
### Run a Potpourri script
To set up the virtual environment with some ready to use recipes you can use
the Potpourri trampoline for your HAUSGOLD internal application. This will
fetch and build the Potpourri repository (5s) and run the desired script. See
the [Potpourri documentation](https://github.com/hausgold/potpourri) for
further details and a full list of supported targets.
```
steps:
- name: Prepare the virtual environment
uses: hausgold/actions/potpourri@master
with:
clone_token: '${{ secrets.CLONE_TOKEN }}'
target: ci/sd-deploy
```